問題
如何在初始觸發後的任何時間確定警報的當前故障率。要找到初始故障率可能更為明顯,但是,是否有可能在幾小時後找到當前的故障率?
答案
當初始SNMP陷阱、日誌和警報跟蹤受監控閾值的初始故障率時,如何獲取當前故障率可能不明顯。在「show threshold」的底部,該命令報告與上一輪詢間隔內當前失敗率相關的所有警報的狀態。
[local]PDSN> show threshold
Friday June 12 04:39:32 UTC 2015
Outstanding alarms:
Threshold Name: aaa-acct-failure-rate
Alarm Source: System
Last Measured: 77% Raise Time: 2015-Jun-11+22:15:05
[local]PDSN> show thresh
Friday June 12 05:34:04 UTC 2015
Outstanding alarms:
Threshold Name: aaa-acct-failure-rate
Alarm Source: System Last Measured: 65%
Raise Time: 2015-Jun-11+22:15:05
[local]PDSN> show thresh
Friday June 12 06:06:07 UTC 2015
Outstanding alarms:
Threshold Name: aaa-acct-failure-rate
Alarm Source: System
Last Measured: 61%
Raise Time: 2015-Jun-11+22:15:05
[local]PDSN> show alarm outstanding verbose
Friday June 12 04:41:28 UTC 2015
Severity Object Timestamp Alarm ID
-------- ---------- ---------------------------------- ---------------------
Alarm Details
--------------------------------------------------------------------------------
Minor Chassis Thursday June 11 22:15:05 U 5770524519230406656
<28:aaa-acct-failure-rate> has reached or exceeded the configured threshold <25%>, the measured value is <32%>. It is detected at <System>.
2015-Jun-11+22:15:05.418 [alarmctrl 65201 info] [8/0/5185 <evlogd:0> alarmctrl.c:192] [software internal system critical-info syslog] Alarm condition: id 5015057a08690000 (Minor): <28:aaa-acct-failure-rate> has reached or exceeded the configured threshold <25%>, the measured value is <32%>. It is detected at <System>.
Thu Jun 11 22:15:05 2015 Internal trap notification 222 (ThreshAAAAcctFailRate) threshold 25% measured value 32%
問題清除:
2015-Jun-12+07:15:05.210 [alarmctrl 65200 info] [8/0/5185 <evlogd:0> alarmctrl.c:285] [software internal system critical-info syslog] Alarm cleared: id 5015057a08690000: <28:aaa-acct-failure-rate> has reached or exceeded the configured threshold <25%>, the measured value is <32%>. It is detected at <System>.
Fri Jun 12 07:15:05 2015 Internal trap notification 223 (ThreshClearAAAAcctFailRate) threshold 20% measured value 0%
[local]PDSN> show threshold Friday June 12 13:45:26 UTC 2015
...
No outstanding alarm