CLI Guide

Table Of Contents
Switch Management Commands 2256
User Guidelines
During system startup, messages are logged in RFC3164 format (e.g., in the
startup persistent log). Messages are logged in the selected format upon the
system processing the startup configuration.
The time zone must be configured for the system to generate RFC5424 log
messages with the time zone included.
Example
This example set the logging message format to RFC5424. DTLS is used for
X509 configured SYSLOG servers if a certificate is available.
console(config)#logging protocol 1
This example sets the logging message format to RFC3164
console(config)#no logging protocol
The following example shows the logging format when logging protocol is set
to 0.
console(config)#logging protocol 0
console(config)#
<190> Oct 18 07:09:15 0.0.0.0-1 RADIUS[radius_task]: radius_api.c(10450) 58
%% INFO RADIUS: Sending RADIUS server state change event to interested users:
1
<189> Oct 18 07:09:15 0.0.0.0-1 TRAPMGR[trapTask]: traputil.c(721) 26 %% NOTE
Unit 1 is the new stack master, Old stack master unit is 0
The following example shows the logging format when logging protocol is set
to 1.
console(config)#logging protocol 1
console(config)#
<190>1 2017-10-18T07:09:23.446Z dhcp-10-130-182-178 UNITMGR cmgrInsertTask
unitmgr.c(8063) 232 [stk@674 unit:1][sev@674 INFO] %% No Potential unit to
configure as Standby when unit 1 joined
<189>1 2017-10-18T07:09:23.445Z dhcp-10-130-182-178 USB_FD emWeb
usbFlashDrive_core.c(903) 231 [stk@674 unit:1][sev@674 NOTE] %% There is
startup-config on flash.
<190>1 2017-10-18T07:09:23.432Z dhcp-10-130-182-178 AUTO_INST emWeb
auto_install_control.c(1358) 230 [stk@674 unit:1][sev@674 INFO] %%
AutoInstall is stopped.
The following example shows the logging format when logging protocol is set
to 1 with timezone configured on the switch.