Domanda
Come determinare la frequenza di errore corrente per un allarme in qualsiasi momento dopo l'innesco iniziale. La percentuale iniziale di errori può essere più ovvia da trovare, ma la percentuale corrente di errori potrebbe essere rilevata dopo qualche ora?
Risposta
Mentre la trap SNMP iniziale, il log e l'allarme rilevano la frequenza di errore iniziale di una soglia monitorata, potrebbe non essere ovvio come ottenere la frequenza di errore corrente. Alla fine di "show threshold", il comando restituisce lo stato di tutti gli allarmi in relazione alla frequenza di errore corrente nell'ultimo intervallo di polling.
[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%
Il problema è risolto:
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