Troubleshoot stacking problems using the show logging command

The show logging command troubleshoots problems in stacking.

Syntax

show logging <a|b|r|s|t|m|p|e|w|i|d|command|filter|option-str|substring ...]>
The options a|r|substring can be used in combination with an event class option.
a

Instructs the switch to display all recorded log events, which include events from previous boot cycles.

b

Display log events as time since boot instead of date/time format.

r

Instructs the switch to display recorded log events in reverse order (most recent first.)

s

Display AMM and SMM log events.

t

Display log events in granularity in 10 milli seconds.

command

Instructs the switch to display command logs.

substring

Instructs the switch to display only those events that match the substring.

The remaining event class options are listed in order of severity - lowest severity first. The output of the command is confined to event classes of equal or higher severity.

Only one of options d|i|w|e|p|m can be used in the command at a time.

The a|r and substring options may be used in combination with an event class option.
m

Display major type of messages.

e

Display error event class.

p

Display major and error type of messages.

w

Display major, error, and warning type of messages.

I

Display major, error, warning, and information.

d

Display major, error, warning, information, and debug messages.

filter

Display log filter configuration and status information.

Option-str

Filter events shown.

show logging example output

switch# show logging -e
Keys:   W=Warning   I=Information
         M=Major     D=Debug E=Error
----  Event Log listing: Events Since Boot  ----
M 07/05/17 18:52:33 00064 system: ST4-CMDR: Reboot of Member ID 4, User reboot
M 07/05/17 18:52:33 02796 chassis: ST4-CMDR: Internal power supply 1 inserted.
            Total fault count: 0.
M 07/05/17 18:52:33 02797 chassis: ST4-CMDR: Internal power supply 1 is OK.
            Total fault count: 0.
M 07/05/17 18:52:50 02796 chassis: ST5-STBY: Internal power supply 1 inserted.
            Total fault count: 0.
M 07/05/17 18:52:50 02797 chassis: ST5-STBY: Internal power supply 1 is OK.
            Total fault count: 0.
----  Bottom of Log : Events Listed = 5  ----