EMS adds the ability to count the number of occurrences of events. Even when an event is filtered from all log targets, the event is counted.
The system displays two counters. One counter displays the number of times an event has occurred, and the other displays the number of times that notification for the event was made to the system for further processing. Both counters reflect totals accumulated since reboot or since the counters were cleared using the clear log counters or clear counters command.
The show log counters command also displays an included flag (the column titled In in the output). The included flag is set to Y(es) if one or more targets are receiving notifications of this event without regard to matching parameters.
The keywords include, notified, and occurred display events only with non-zero counter values for the corresponding counter.
The output of the command:
show log counters stp.inbpdu severity debug-summary
is similar to the following:
Comp SubComp Condition Severity Occurred In Notified ------- ----------- ----------------------- ------------- -------- -- -------- STP InBPDU Drop Error 0 Y 0 STP InBPDU Ign Debug-Summary 0 N 0 STP InBPDU Mismatch Warning 0 Y 0 Occurred : # of times this event has occurred since last clear or reboot Flags : (*) Not all applications responded in time with there count values In(cluded): Set to Y(es) if one or more targets filter includes this event Notified : # of times this event has occurred when 'Included' was Y(es)
The output of the command:
show log counters stp.inbpdu.drop
is similar to the following:
Comp SubComp Condition Severity Occurred In Notified ------- ----------- ----------------------- ------------- -------- -- -------- STP InBPDU Drop Error 0 Y 0 Occurred : # of times this event has occurred since last clear or reboot Flags : (*) Not all applications responded in time with there count values In(cluded): Set to Y(es) if one or more targets filter includes this event Notified : # of times this event has occurred when 'Included' was Y(es)