29-11
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 29 Configuring System Message Logging
Configuring the System Message Logging on the Switch
Displaying the System Messages
Enter the
show logging buffer
command to display the messages in the switch logging buffer. If you do
not specify
number_of_messages
, the default is to display the last 20 messages in the buffer (-20).
To display the messages in the switch logging buffer, perform one of these tasks:
This example shows how to display the first five messages in the buffer:
Console> (enable)
show logging buffer 5
1999 Apr 16 08:40:11 %SYS-5-MOD_OK:Module 1 is online
1999 Apr 16 08:40:14 %SYS-5-MOD_OK:Module 3 is online
1999 Apr 16 08:40:14 %SYS-5-MOD_OK:Module 2 is online
1999 Apr 16 08:41:15 %PAGP-5-PORTTOSTP:Port 2/1 joined bridge port 2/1
1999 Apr 16 08:41:15 %PAGP-5-PORTTOSTP:Port 2/2 joined bridge port 2/2
This example shows how to display the last five messages in the buffer:
Console> (enable)
show logging buffer -5
%PAGP-5-PORTFROMSTP:Port 3/1 left bridge port 3/1
%SPANTREE-5-PORTDEL_SUCCESS:3/2 deleted from vlan 1 (PAgP_Group_Rx)
%PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/2
%PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1-2
%PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/1-2
Console> (enable)
Enabling and Disabling the System syslog Dump
If the system fails, a file containing the system messages in the syslog buffer (as displayed when entering
the
show logging buffer
command) is produced.
To enable or disable the system syslog dump, perform this task in privileged mode (by default, the syslog
dump is disabled):
This example shows how to enable the system syslog dump:
Console> (enable)
set system syslog-dump enable
(1) In the event of a system crash, this feature will
cause a syslog file to be written out.
(2) Selected syslog file is slot0:sysloginfo
(3) Please make sure the above device has been installed,
and ready to use.
Syslog-dump enabled
Console> (enable)
Task
Command
Display the first
number_of_messages
messages
in the buffer.
show logging buffer
[
number_of_messages
]
Display the last
number_of_messages
messages in
the buffer.
show logging buffer
-
[
number_of_messages
]
Task
Command
Step 1
Enable or disable the system syslog dump.
set system syslog-dump
{
enable
|
disable
}
Step 2
Verify the status of the system syslog dump.
show system