Is there a way to test asserting and clearing a custom alarm in Spectrum?

Document ID : KB000057374
Last Modified Date : 14/02/2018
Show Technical Document Details

QUESTION: I have create customer events in Spectrum. One to assert an alarm and one to clear the alarm. Is there a way to test asserting and clearing a custom alarm in Spectrum?

 

ANSWER: The "create event" Command Line Interface (CLI) command can be used to create the events that generate and clear the alarms.

 

ADDITIONAL INFORMATION: Reference the "create event" section in the "Command Line Interface User Guide" document for Spectrum 9.4 and below and the "create event" section in the Spectrum 10.0 document.

 

The following is the document description for the "create event" CLI command:

create event

The create event command, creates an event with type event_type and text event_text for the model that is specified by model_handle. If a landscape_handle is specified, the event is created for the user model that created the event.

Note: In previous versions of the CLI, the event was created for the landscape model.

If model_handle or landscape_handle is not specified, then the event is created for the user model that created the event or the current model if one has been specified. Some events in CA Spectrum do not have an associated model. For example, when an application connects to the SpectroSERVER, no model is associated with the event.

If create event is entered with a valid event_type, valid event_text, and a valid model_handle or landscape_handle (if present), the created entry is displayed in the event table. The create time is displayed in hh:mm:ss format.

The event_type command (also named an event code in CA Spectrum) is a 4-byte hexadecimal number: the two most significant bytes specify the developer ID for the event (0001 for CA Spectrum-generated event codes), and the two least significant bytes are a unique identifier for the event. Not all event types include user-entered text. Examples of such event types are those that include the variable {S 0} in their event format files. For those event types that do not include user-entered text, the event_text parameter is ignored but must still be present on the command line.

For more information, see the CA Spectrum Certification User Guide.

Example: create event

$ create event type=0x1061a text=“fan down” mh=0x40013

Date           Time       Type      MHandle    MName MTypeName

05/11/2000 12:39:42 0x1061a 0x400134 12.84    Bdg_CSI_CNB20