clear log counters

clear log counters [event-condition | [all | event-component] {severity severity {only}}]

Description

Clears the incident counters for events.

Syntax Description

event-condition Specifies the event condition counter to clear.
all Specifies that all events counters are to be cleared.
event-component Specifies that all the event counters associated with a particular component should be cleared.
severity Specifies the minimum severity level of event counters to clear (if the keyword only is omitted).
only Specifies that only event counters of the specified severity level are to be cleared.

Default

If severity is not specified, then the event counters of any severity are cleared in the specified component.

Usage Guidelines

This command sets the incident counters to zero for each event specified. To display event counters, use the following command: show log counters

See the command show log for more information about severity levels.

To get a listing of the event conditions in the system, use the following command: show log events {details}

To get a listing of the components present in the system, use the following command: show log components

In a SummitStack, execution of these commands on a backup or standby node results in the clearing of that node‘s information only. Execution of these commands on the master node results in the clearing of information on all nodes in the system.

Example

The following example clears the event counters for event conditions of severity error or greater in the component BGP:

clear log counters "BGP" severity error

History

This command was first available in ExtremeXOS 10.1.

Platform Availability

This command is available on all ExtremeSwitching Universal switches.