Hi,

You can pass any Spectrum attributes to
SetScript/ClearScript/UpdateScript. Complete information is detailed
in Spectrum_AlarmNotifier_User_ENU.pdf.

To summarize:

1. Add the desired attribute (ifAlias) in .alarmrc file:
EXTRA_ATTRS_AS_ARGS=0x23000e,0x11f7e
Note that 0x23000e means Device Type and it's included by default.

2. Add the following line after the default DTYPE in Set/Clear Script.
DTYPE="$1"
IFALIAS_HEX="$2"
Note that $1, $2 refers to attributes declared in EXTRA_ATTRS_AS_ARGS

3. IfAlias is coded as Octed String. You'll need to convert it to
ASCII before printing it:
if ([ "$IFALIAS_HEX" != "N/A" ] && [ "$IFALIAS_HEX" != "" ])
then
  for line in $(echo "$IFALIAS_HEX"| gawk -F"." '{ for (i=1; i <= NF;
i++) { print $i } }' )
  do
    IFALIAS=$IFALIAS$line
  done
else
        IFALIAS="N/A"
fi

4. Restart Notifier

I hope this helps.
Regards.
James.


On Sun, Apr 10, 2011 at 12:34 PM, Muhammed Udhuman <[email protected]> wrote:
> Hi,
>
> I have configured email notification and its working fine. I need interface
> description (IfAlias) instead of interface name in the email notification.
> Is it possible to get interface description in email notification? and how
> to get it. Please provide me a small procedure to do this.
>
> Spectrum Version: 9.2
> OS: Win 2003
>
> Thanks & Regards,
> Muhammed Udhuman. J
>
> --To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to