70-4
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 70 Configuring System Message Logging
Configuring System Message Logging
Message logging is enabled by default. It must be enabled to send messages to any destination other than
the console. When enabled, log messages are sent to a logging process, which logs messages to
designated locations asynchronously to the processes that generated the messages.
To disable message logging, perform this task:
Disabling the logging process can slow down the switch because a process must wait until the messages
are written to the console before continuing. When the logging process is disabled, messages are
displayed on the console as soon as they are produced, often appearing in the middle of command output.
The
logging synchronous
global configuration command also affects the display of messages to the
console. When this command is enabled, messages appear only after you press Return. For more
information, see the
“Synchronizing Log Messages” section on page 70-5
To reenable message logging after it has been disabled, use the
logging on
global configuration
command.
Setting the Message Display Destination Device
If message logging is enabled, you can send messages to specific locations in addition to the console.
To specify the locations that receive messages, perform this task, beginning in privileged EXEC mode:
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
no logging on
Disables message logging.
Step 3
Switch(config)#
end
Returns to privileged EXEC mode.
Step 4
Switch#
show running-config
or
show logging
Verifies your entries.
Step 5
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
logging buffered
[
size
]
Logs messages to an internal buffer on the switch. The default buffer size
is 4096. The range is 4096 to 2147483647 bytes.
If the switch, the log file is lost unless you previously saved it to flash
memory. See Step 4.
Note
Do not make the buffer size too large because the switch could run
out of memory for other tasks. Use the
show memory
privileged
EXEC command to view the free processor memory on the switch.
However, this value is the maximum available, and the buffer size
should
not
be set to this amount.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...