29-6
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
This example shows how to disable logging to the current and future console sessions:
Console> (enable)
set logging console disable
System logging messages will not be sent to the console.
Console> (enable)
To enable or disable the logging state for the current Telnet session, perform this task in privileged mode:
This example shows how to disable logging to the current Telnet session:
Console> (enable)
set logging session disable
System logging messages will not be sent to the current login session.
Console> (enable)
Setting the System Message Logging Levels
You can set the severity level for each logging facility using the
set logging level
command. Enter the
all
keyword to specify all facilities. Enter the
default
keyword to make the specified severity level the
default for the specified facilities. If you do not enter the
default
keyword, the specified severity level
applies only to the current session.
To set the system message logging severity level setting for a logging facility, perform this task in
privileged mode:
This example shows how to set the logging severity level to 5 for all the facilities (for the current session
only):
Console> (enable)
set logging level all 5
All system logging facilities for this session set to severity 5(notifications)
Console> (enable)
This example shows how to set the default logging severity level to 3 for the
cdp
facility:
Console> (enable)
set logging level cdp 3 default
System logging facility <cdp> set to severity 3(errors)
Console> (enable)
Task
Command
Step 1
Enable or disable the logging state for a Telnet
session.
set logging session
{
enable
|
disable
}
Step 2
Verify the logging configuration.
show logging
[
noalias
]
Task
Command
Step 1
Set the severity level for the logging facilities.
set logging level
{
all
|
facility
}
severity
[
default
]
Step 2
Verify the system message logging configuration.
show logging
[
noalias
]