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.

On SummitStacks, there are three ways to clear the ERR LED: clear the log, reboot the switch, or use the clear log error-led command. To clear the ERR LED without rebooting the switch or clearing the log messages, use the clear log error-led command.

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