How to add Mac Address value to the Alarm Text Message
search cancel

How to add Mac Address value to the Alarm Text Message

book

Article ID: 395445

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

This can be achieved by using the Event Procedure along with the Dynamic Alarm Title.

The Event Procedure will read the value of the MAC_Address (0x110df) attribute ID and save it in variable 1 (U 1 }).

Environment

Spectrum: Any

Resolution

1. Edit the $SPECROOT/custom/Events/EventDisp file on the SpectroSERVER machine and add the following:

0xfff00003 E 10 P "\
CreateEventWithVariables (\
     {C CURRENT_MODEL },\
     {H 0xfff00004 },\
     SetEventVariable (\
        GetEventVariableList(),\
          { U 1 },\
            ReadAttribute({C CURRENT_MODEL},{H 0x110df})))"
0xfff00004 E 10 A 1,0xfff00004

Where 0xfff00003 and 0xfff00004 are the available custom event code and 0x110df is the e MAC_Address (0x110df) attribute ID.

2. Click on the "Update Event Configuration" button under the SpectroSERVER Control Subview of the VNM model to load the changes.

3. Launch the Event Configuration Editor and supply the following in the Type field of the Alarms tab.

Watch Threshold violation on model: {m} - Mac Address: {X 1}

4. Once the 0xfff00003 event is generated by the Threshold Violation, it will read the MAC_Address (0x110df) attribute ID value and save it in variable 1.