Event Procedure to display the inteface's IP in Dynamic Alarm Title
search cancel

Event Procedure to display the inteface's IP in Dynamic Alarm Title

book

Article ID: 258925

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to grab the IP address from the interface/port model (0x12dbb attribute ID) and print it in the Alarm Title?

Environment

Release : Any version

Resolution

Add the following entries in the $SPECROOT/custom/Events/EventDisp file:

0x480004 P "\
  CreateEventWithVariables( \
  {C CURRENT_MODEL}, \
  {H 0xfff00000}, \
  SetEventVariable( \
  GetEventVariableList(), \
  {H 0x12b4c}, \
  Append( \
  {S \"WAN LINK UTILIZATION REACHED MORE THAN 85%, IP: \"}, \
  ReadAttribute( \
  {C CURRENT_MODEL}, \
  {H 0x12dbb}))))"
0xfff00000 E 10 A 3,0x480004

Where:

  • 0x480004 is the event code you want to create the event procedure
  • 0xfff00000 is the next available event code for customization
  • 0x12b4c is the dynamic alarm title attribute
  • 0x12dbb is the ip_address attribute ID

Save the changes.

Click on the "Update Event Configuration" button under the SpectroSERVER Control subview of the VNM model to load the changes into the SS memory.

Launch the Event Configuration Editor and copy the Event Message from the 0x480004 event code and paste it to the 0xfff00000 event code.

Save the change.

Once a new 0x480004 event code is generated, it will generate the dynamic alarm title: