Junos OS

Expand all | Collapse all

Clearing a previously set (test) alarm?

Jump to Best Answer
  • 1.  Clearing a previously set (test) alarm?

    Posted 02-24-2015 10:10

    Hi-

     

    I was investigating some of the hidden commands documented here:

     

    http://juniper.cluepon.net/index.php/Hidden_Commands

     

    on my SRX.

     

    I set a test alarm as follows:

     

    set alarm long-msg "THIS IS THE ALARM LONG MESSAGE" alarm-id 111 red alarm-life 10000 short-msg "SHORTMSG"

     

    Subsequently, "show system alarm" shows me this test alarm:

     

    admin@MYSRX> show system alarms
    1 alarms currently active
    Alarm time               Class  Description
    2015-02-24 17:59:29 GMT  Major  "THIS IS THE ALARM LONG MESSAGE"

     

    However, does anyone know how to *delete* this alarm (short of waiting for the alarm-life timer to decrement to zero)?

     

    Thanks!



  • 2.  RE: Clearing a previously set (test) alarm?
    Best Answer

     
    Posted 02-25-2015 02:22

    {master:3}
    root@EX> show system alarms
    2 alarms currently active
    Alarm time               Class  Description
    2015-02-17 10:11:52 CET  Major  "THIS IS THE ALARM LONG MESSAGE"
    2015-01-28 10:33:27 CET  Minor  Rescue configuration is not set

    {master:3}
    root@EX> clear alarm 111

    {master:3}
    root@EX> show system alarms
    1 alarms currently active
    Alarm time               Class  Description
    2015-01-28 10:33:27 CET  Minor  Rescue configuration is not set

    {master:3}
    root@EX>


    =====

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.