29-7
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
Enabling and Disabling the Logging Time-Stamp Enable State
To enable or disable the logging time-stamp state, perform this task in privileged mode:
This example shows how to enable the time-stamp display on the system logging messages:
Console> (enable)
set logging timestamp enable
System logging messages timestamp will be enabled.
Console> (enable)
Setting the Logging Buffer Size
To set the number of messages to log to the logging buffer, perform this task in privileged mode:
This example shows how to set the logging buffer size to 200 messages:
Console> (enable)
set logging buffer 200
System logging buffer size set to <200>
Console> (enable)
Limiting the Number of syslog Messages
You can limit the number of syslog messages that are sent to the history table and the SNMP network
management station based on the severity. The default severity is set to warnings(4).
To limit the number of syslog messages, perform this task in privileged mode:
This example shows how to limit the number of syslog messages to the messages with a severity level
of notifications(5):
Console> (enable)
set logging history severity 5
System logging history set to severity <5>
Console> (enable)
Task
Command
Step 1
Enable or disable the logging time-stamp state.
set logging timestamp
{
enable
|
disable
}
Step 2
Verify the logging time-stamp state.
show logging
[
noalias
]
Task
Command
Step 1
Set the number of messages to log to the logging
buffer.
set logging buffer
buffer_size
Step 2
Verify the system message logging configuration.
show logging
[
noalias
]
Task
Command
Step 1
Limit the number of syslog messages.
set logging history severity
severity_level
Step 2
Verify the system message logging configuration.
show logging