52-5
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 52 Configuring System Message Logging Configuring System Message Logging
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:
The logging buffered global configuration command copies logging messages to an internal buf fer. The
buffer is circular, so newer messages overwrite older messages after the buffer is full. To display the
messages that are logged in the buffer, use the show logging privileged EXEC command. The first
message displayed is the oldest message in the buffer. To clear the contents of the buffer, use the
clear logging privileged EXEC command.
To disable logging to the console, use the no logging console global configuration command. To disable
logging to a file, use the no logging file [severity-level-number | type] global configuration command.
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.
Step 3 Switch(config)# logging host Logs messages to a UNIX syslog server host.
For host, specify the name or IP address of the host to be used as the
syslog server.
To build a list of syslog servers that receive logging messages, enter this
command more than once.
For complete syslog server configuration steps, see the “Configuring
UNIX Syslog Servers” section on page 52-10.
Step 4 Switch(config)# end Returns to privileged EXEC mode.
Step 5 Switch# terminal monitor Logs messages to a nonconsole terminal during the current session.
Terminal parameter-setting commands are set locally and do not remain
in effect after the session has ended. You must perform this step for each
session to see the debugging messages.
Step 6 Switch# show running-config Verifies your entries.
Step 7 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.