Configuring System Message Logging On The Switch; Configuring Session Logging Settings - Cisco WS-C2950SX-48-SI Configuration Manual

Catalyst 4500 series switches
Hide thumbs Also See for WS-C2950SX-48-SI:
Table of Contents

Advertisement

Chapter 37
Configuring System Message Logging

Configuring System Message Logging on the Switch

The following sections describe how to configure system message logging on the switch.

Configuring Session Logging Settings

By default, system logging messages are sent to console and Telnet sessions based on the default logging
facility and severity values. If desired, you can disable logging to the console or logging to a given Telnet
session.
When you disable or enable logging to console sessions, the enable state is applied to all future console
sessions. For example, if you disable logging to the console, disconnect from the console port, and later
reconnect, logging is still disabled for the console.
In contrast, when you disable or enable logging to a Telnet session, the enable state is applied only to
that session. If you disable logging to a Telnet session, disconnect the session, and later reconnect,
logging is enabled for the new session.
Note
If you enter the set logging session command while connected through the console port, the command
has the same effect as entering the set logging console command. However, if you enter the set logging
console command while connected through a Telnet session, the default console logging enable state is
changed.
To configure the logging enable state for console sessions, perform this task in privileged mode:
Task
Step 1
Configure the default logging enable state for
console sessions.
Step 2
Verify the logging configuration.
This example shows how to configure the logging disabled state for 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 change the logging enable state for the current Telnet session, perform this task in privileged mode:
Task
Step 1
Change the logging enable state for a Telnet
session.
Step 2
Verify the logging configuration.
78-15486-01
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Configuring System Message Logging on the Switch
Command
set logging console {enable | disable}
show logging [noalias]
Command
set logging session {enable | disable}
show logging [noalias]
Release 8.1
37-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents