Using the CLI

Syntax:

By default, the show logging command displays the log messages recorded since the last reboot in chronological order:

-a

Displays all recorded log messages, including those before the last reboot.

-b

Displays log events as the time since the last reboot instead of in a date/time format.

-r

Displays all recorded log messages, with themost recent entries listed first (reverse order).

-s

Displays the active management module (AM) and standby management module (SM) log events.

-t

Displays the log events with a granularity of 10 milliseconds.

-m

Displays only major log events.

-e

Displays only error event class.

-p

Displays only performance log events.

-w

Displays only warning log events.

-i

Displays only informational log events.

-d

Displays only debug log events.

 

filter

Displays only log filter configuration and status information.

<option-str>

Displays all Event Log entries that contain the specified text. Use an <option-str> value with -a or -r to further filter show logging command output.

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