Setting The Message Display Destination Device - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 61
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:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# logging buffered
[
]
size
Step 3
Switch(config)# logging host
Step 4
Switch(config)# end
Step 5
Switch# terminal monitor
Step 6
Switch# show running-config
Step 7
Switch# copy running-config
startup-config
The logging buffered global configuration command copies logging messages to an internal buffer. 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.
OL_28731-01
Purpose
Enters global configuration mode.
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.
Do not make the buffer size too large because the switch could run
Note
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.
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
UNIX Syslog Servers" section on page
Returns to privileged EXEC mode.
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.
Verifies your entries.
(Optional) Saves your entries in the configuration file.
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Configuring System Message Logging
"Configuring
61-10.
61-5

Advertisement

Table of Contents
loading

Table of Contents