Using the CLI
Syntax:
show logging [-a, -b, -r, -s, -t, -m, -e, -p, -w, -i, -d, command, filter] [< option-str >]
By default, the
show logging
command displays the log messages recorded since the last reboot in chronological order:
|
Displays all recorded log messages, including those before the last reboot. |
|
Displays log events as the time since the last reboot instead of in a date/time format. |
|
Displays all recorded log messages, with themost recent entries listed first (reverse order). |
|
Displays the active management module (AM) and standby management module (SM) log events. |
|
Displays the log events with a granularity of 10 milliseconds. |
|
Displays only major log events. |
|
Displays only error event class. |
|
Displays only performance log events. |
|
Displays only warning log events. |
|
Displays only informational log events. |
|
Displays only debug log events. |
|
Displays only command logs. |
|
Displays only log filter configuration and status information. |
|
Displays all Event Log entries that contain the specified text. Use an
<option-str>
value with
|
Example:
To display all Event Log messages that have "system" in the message text or module name, enter the following command:
switch# show logging -a system
To display all Event Log messages recorded since the last reboot that have the word "system" in the message text or module name, enter:
switch# show logging system