clear log

clear log { static | messages [memory-buffer | nvram]}

Description

Clears the log messages in memory and NVRAM.

Syntax Description

static Specifies that the messages in the NVRAM and memory-buffer targets are cleared.
memory-buffer Clears entries from the memory buffer.
nvram Clears entries from NVRAM.

Default

N/A.

Usage Guidelines

The switch log tracks configuration and fault information pertaining to the device.

By default, log entries that are sent to the NVRAM remain in the log after a switch reboot. The clear log and clear log messages memory-buffer commands remove entries in the memory buffer target; the clear log static and clear log messages nvram commands remove messages from the NVRAM target. In addition, the clear log static command will also clear the memory buffer target.

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 command clears all log messages, from the NVRAM:
# clear log static

History

This command was first available in ExtremeXOS 10.1.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches.