clear diagnostic event-log
To clear the diagnostic event logs for a specific switch module or event type, use the clear diagnostic event-log command in privileged EXEC mode.
clear diagnostic event-log [event-type {error | info | warning} | switch {switch_num module module_num | all [event-type {error | info | warning}]}]
Syntax Description
event-type error |
Clears the error events. |
event-type info |
Clears the informative events. |
event-type warning |
Clears the warning events. |
switch num |
Clears the events for a specific switch. |
module num |
Clears the events for a specific module. |
switch all |
Clears all the event logs from all the switches. |
Command Modes
Privileged EXEC (#)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Fuji 16.9.1 |
This comamnd was introduced |
Examples
This example shows how to clear error event logs:
Device# clear diagnostic event-log event-type error
This example shows how to clear event logs on switch 1 module 1:
Device# clear diagnostic event-log switch 1 module 1
This example shows how to clear error event logs on all the switches:
Device# clear diagnostic event-log switch all