Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Step 1
Device# configure terminal
Logs messages to an internal buffer on the
switch or on a standalone switch or, in the case
logging buffered [size]
Example:
Step 2
of a switch stack, on the active switch.. The
Device(config)# logging buffered 8192
range is 4096 to 2147483647 bytes. The default
buffer size is 4096 bytes.
If a standalone switch or the active switch fails,
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 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.
Note
Logs messages to a UNIX syslog server host.logging host
Step 3
Example:
host specifies the name or IP address of the host
to be used as the syslog server.
Device(config)# logging 125.1.1.100
To build a list of syslog servers that receive
logging messages, enter this command more
than once.
Returns to privileged EXEC mode.end
Example:
Step 4
Device(config)# end
Logs messages to a nonconsole terminal during
the current session.
terminal monitor
Example:
Step 5
Terminal parameter-setting commands are set
locally and do not remain in effect after the
Device# terminal monitor
session has ended. You must perform this step
for each session to see the debugging messages.
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
262
Configuring System Message Logs
Setting the Message Display Destination Device