DX NetOps

 View Only
  • 1.  How Pass any SPECTRUM's Attribute thought Alarm Notifier??

    Posted Jan 13, 2011 01:55 PM
    Hi !

    Im trying to pass any SPECTRUM's Attribute thought Alarm Notifier, in set-script or update script... but i cannot make it work.

    If someone please have a example maded, thanks!

    Pereyra Diego


  • 2.  RE: How Pass any SPECTRUM's Attribute thought Alarm Notifier??
    Best Answer

    Posted Jan 13, 2011 02:21 PM
    I'll try...

    In $SPECROOT/Notifier/.alarmrc set up the attributes that you want to pass, like so:


    EXTRA_ATTRS_AS_ENVVARS=0x11f7e,0x1134b


    Then within the SetScripts - they may be referred to as "$SANM_0xXXXXXX" (we use shell scripts for our Notifiers)

    IFALIAS="$SANM_0x11f7e"
    IFDESC="$SANM_0x1134b"

    NEWEVMSG="BAD LINK DETECTED Port Descr=$IFALIAS Interface=$IFDESC"

    # Note: Windows will uppercase these variables, so they need to be referenced
    # that way - ie. $SANM_0X100C5 and $SANM_0X11F84.

    Looking for this note - it seems the example is pretty much the same in the Sample SetScripts provided with the installation - they do a bit better explaining too.


  • 3.  RE: How Pass any SPECTRUM's Attribute thought Alarm Notifier??

    Posted Jan 13, 2011 03:20 PM
    ready!

    Thanks Roderick, i was writing it wrong, in different lines.

    diego


  • 4.  Re: How Pass any SPECTRUM's Attribute thought Alarm Notifier??

    Posted Jun 24, 2014 08:32 AM

    Hello Dpereyra,

     

    I'm a newbie in spectrum and i already applied all the modifications through alarmrc file and SetScript  for passing spectrum's attribute  but how do you see that it works? via Onclick or ?

     

    If u can give me all the details it could help me alot

     

    Thank you in advance



  • 5.  Re: How Pass any SPECTRUM's Attribute thought Alarm Notifier??

    Posted Nov 23, 2016 01:09 PM

    Do an echo of the variable, echo $SANM_0x1134b for example, and check it in the ALARMNOTIFIER.OUT or another .OUT.

     

    Good luck !

    Diego