Troubleshoot stacking problems using the show logging command
The
show logging
command troubleshoots problems in stacking.
show logging <a|b|r|s|t|m|p|e|w|i|d|command|filter|option-str|substring ...]>
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.
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 10/04/13 11:01:21 00686 system: Test - This message was sent in a group 00000
E 10/04/13 11:01:21 00686 system: Test - This message was sent in a group 00001
---- Bottom of Log : Events Listed = 2 ----
Output
switch# show logging -r -s
I 10/02/00 00:46:56 02558 chassis: ST1-STBY: Stack port 3 is now on-line.
I 10/02/00 00:46:56 02558 chassis: ST2-CMDR: Stack port 2 is now on-line.