12. Alarm and statistics
12.1 Alarm configuration and query
In the config mode, enter the alarm to enter alarm mode. This mode support alarm
configuration of open, shut off the switch, support adjustment of the alarm level,
support configuration trap report switch, alarm history query support.
Close alarm function:
Host(config-alarm)# alarm disable
Open alarm function:
Host(config-alarm)#alarm enable
Generate trap when alarm:
Host(config-alarm)# trap enable
Configure an alert level for an alarm:
Host(config-alarm)# alarm-level alarm-id 0x60012 level 1
Query all historical alarm records:
Host(config-alarm)#show history-alarm all
Historical alarm record for a time period:
Host(config-alarm)#show history-alarm start-time 2014/06/30 end-time
any
12.2 Statistical query
ETH uplink port statistics to check:
Host(config)# show statistics ethernet 1/1
PON statistics query:
Host(config)# show statistics pon 1/1