Synchronizing Log Messages - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

Command or Action
Step 3
logging host
Example:
Switch(config)# logging
125.1.1.100
Step 4
logging file flash: filename
[max-file-size [min-file-size]]
[severity-level-number | type]
Example:
Switch(config)# logging file
flash:log_msg.txt 40960 4096 3
Step 5
end
Example:
Switch(config)# end
Step 6
terminal monitor
Example:
Switch# terminal monitor

Synchronizing Log Messages

You can synchronize unsolicited messages and debug privileged EXEC command output with solicited device
output and prompts for a specific console port line or virtual terminal line. You can identify the types of
messages to be output asynchronously based on the level of severity. You can also configure the maximum
number of buffers for storing asynchronous messages for the terminal after which messages are dropped.
When synchronous logging of unsolicited messages and debug command output is enabled, unsolicited device
output appears on the console or printed after solicited device output appears or is printed. Unsolicited messages
and debug command output appears on the console after the prompt for user input is returned. Therefore,
unsolicited messages and debug command output are not interspersed with solicited device output and prompts.
After the unsolicited messages appear, the console again displays the user prompt.
This task is optional.
Purpose
Logs messages to a UNIX syslog server host.
host specifies 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.
Stores log messages in a file in flash memory on a standalone switch or, in the
case of a switch stack, on the active switchstack master.
• filename—Enters the log message filename.
• (Optional) max-file-size —Specifies the maximum logging file size. The
range is 4096 to 2147483647. The default is 4096 bytes.
• (Optional) min-file-size—Specifies the minimum logging file size. The
range is 1024 to 2147483647. The default is 2048 bytes.
• (Optional) severity-level-number | type—Specifies either the logging severity
level or the logging type. The severity range is 0 to 7.
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.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
How to Configure System Message Logs
1601

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents