We are getting a trap which informs us about loopback on a particular interface, but the variable that is bound in the trap is the Index number of the Interface. We were wondering
if there is some kind of Event Procedure we could write that would convert the Index number to be shown as the IF name in the event display.
Any
As the original event contains the port's ifIndex value we can use this to read its ifName from the ifName 0x11f60 attribute and set this as a new variable in a new event.
$SPECROOT/custom/Events/EventDisp
|
0xfff02bb2 E 20 P " \ ReadAttributeInstance( { C CURRENT_MODEL }, { H 0x11f60 }, GetEventVariable( { U 1 } ) ) \ 0xfff02bb3 E 20 |
Note: There cannot be any white spaces after the '\' character at the end of the lines. This is escaping the newline character so its read as one line.
Note: Used the ifName/0x11f60 attribute at the device level.
When implementing you would need to change 0xfff02bb2 to your mapped event id, create a new event id replace 0xfff02bb3 with your new event ID.
The Event Format Message can be added to display the ifName from Variable 4