How to configure Spectrum to assert or clear an alarm based on the value of a trap varbind.

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

SUMMARY:  I have a trap that sends a trap varbind whose value indicates the severity of the issue. How can I configure Spectrum to assert or clear an alarm based on the value of the trap varbind?

 

INSTRUCTIONS:  The best method is to use a SeverityMap file. A SeverityMap file maps the value of an Event Variable to an alarm condition. For example, let's assume the following:

The trap sends a varbind where the value of the varbind indicates the following conditions:

0 = Clear

1 = Minor Alarm

2 = Major Alarm

3 = Critical Alarm

When you configure your AlertMap file for the trap, you configure the value of this varbind to be saved in Event Variable "1".

When you use the Event Configuration editor to configure the event, set the Severity to "Conditional", enter a value of "1" in the "Event Variable" field and then click on the Configure button to create your SeverityMap file.

SeverityMap_1.png

 

To configure your SeverityMap file, click on the green "+" icon. Give your SeverityMap a name and configure the values to a Condition.

SeverityMap_2.png

 

After saving your changes, be sure to update the Event Configuration by selecting the VNM model and clicking on the "Update Event Configuration" button in the SpectroSERVER Control subview in the Information tab.

The resulting entry in the $SPECROOT/custom/Events/Eventisp file will look similar to the following:

0xfff00000 A { v 1 CA.SeverityMapExample },0xfff00000

 

The actual SeverityMap file is created in the $SPECROOT/custom/Events/CA/SeverityMaps directory by default. It will look similar to the following:

0 C

1 1

2 2

3 3

SeverityMap_3.png

 

ADDITIONAL INFORMATION:  Please reference Configuring Alarm Severity Mappings for the Conditional Severity Level for more information on creating a SverityMap file.