This script displays the list of alarms generated in last one hour.

The output is stored in a file called alarms_log.txt file in /f10/flash dir.

Starting the script

------------------

Goto configure mode and execute the command "script username admin /f10/flash/DisplayAlarms.py"

Stopping the script

-------------------

Goto configure mode and execute the command "no script username admin /f10/flash/DisplayAlarms.py"

List of Configurable Parameters in this Script

----------------------------------------------

1. TIME_TO_SLEEP : Time difference (in seconds) between the two successive execution of this script. Default value is 3600 (1 Hour)

2. LOG_FLUSH_THRESHOLD : Keep the last x number of script output. Default value is 24

Viewing the Output

------------------

Execute the command "show file /f10/flash/alarms_log.txt" to view the list of alarms which are generated in last one hour

Sample Output

-------------

************************************************************

Tue Sep 14 12:10:52 2010

************************************************************

show alarms

-- Minor Alarms --

SFM 1 PEM A failed or rmvd 0 hr, 37 min

-- Major Alarms --

SFM 1 PEM A failed or rmvd 0 hr, 47 min

------------------------------------------------------------