I updated setscript same like your snapshot but the mail is sent without contain ifalias value
Original Message:
Sent: 01-18-2021 02:14 PM
From: Gregory Polenta
Subject: add ifalias Attribute in alarm mail of BAD LINK DETECTED
It was mentioned this was needed for the SetScript for mail (AlarmNotifier). If this is just needed
for the AlarmNotifier why not configure AlarmNotifier to pass the ifAlias
.alarmrc
Original Message:
Sent: 01-18-2021 01:04 PM
From: Infrastructure Monitoring
Subject: add ifalias Attribute in alarm mail of BAD LINK DETECTED
Hi ,
I update eventdisp file and update event configuration of NVM model
0x00010d11 E 50 P " \
CreateEventWithAttributes( \
{ C CURRENT_MODEL }, \
{ H 0x0f320002 }, \
SetEventAttribute( \
GetEventAttributeList(), \
{ U 20 }, \
ReadAttribute( \
{ C CURRENT_MODEL }, \
{ H 0x13224 } ) ) )"
I find event is update as below , so what is next step?
Original Message:
Sent: 01-18-2021 09:46 AM
From: Joseph Ackley
Subject: add ifalias Attribute in alarm mail of BAD LINK DETECTED
What may be the issue is the ifAlias attribute id 0x11f84 is the ifAlias attribute for the device model.
The 0x10d11 event is generated on the interface model. The ifAlias attribute id for the interface model is 0x11f7e.
Reference https://knowledge.broadcom.com/external/article?articleId=51929
One thing to note is the ifAlias attribute is an external attribute so if the device is not available via SNMP then the snmp GET will fail. Try using the X_ifAlias attribute id 0x13224 as this is an internal attribute. The value in this attribute is the last value of ifAlias received from the device for this interface.
Joe
Original Message:
Sent: 01-18-2021 04:38 AM
From: Infrastructure Monitoring
Subject: add ifalias Attribute in alarm mail of BAD LINK DETECTED
hi ,
- this is part of message i receive " The link status of port (name - RouterA_Tunnel18, type - Gen_IF_Port) is now "bad". (event [0x00010d11])"
- RouterA is cisco router , IFalias id is 0x11f84
Now i need to add value of IFalias id is 0x11f84 of setscript mail ,
i follow the following steps
================================================================================
I edit eventdisp file located in this path \SS\CsVendor\Cisco_Router
0x00010d11 E 50 P " \
CreateEventWithAttributes( \
{ C CURRENT_MODEL }, \
{ H 0x0f320002 }, \
SetEventAttribute( \
GetEventAttributeList(), \
{ U 20 }, \
ReadAttribute( \
{ C CURRENT_MODEL }, \
{ H 0x11f84 } ) ) )"
what is next steps please ? i still receive alarms mail without ifalias