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.
Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Step 1
Device# configure terminal
Specifies the line to be configured for
synchronous logging of messages.
line [console | vty] line-number
[ending-line-number]
Step 2
Example:
• console —Specifies configurations that
occur through the switch console port or
the Ethernet management port.
Device(config)# line console
• line vty line-number—Specifies which vty
lines are to have synchronous logging
enabled. You use a vty connection for
configurations that occur through a Telnet
session. The range of line numbers is from
0 to 15.
You can change the setting of all 16 vty lines
at once by entering:
line vty 0 15
You can also change the setting of the single
vty line being used for your current connection.
For example, to change the setting for vty line
2, enter:
line vty 2
When you enter this command, the mode
changes to line configuration.
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
263
Configuring System Message Logs
Synchronizing Log Messages