If the switch is restarted, the syslog server configuration changes that are kept in volatile memory might
get lost.
Note
Before You Begin
You must have configured one or more syslog servers.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Enables distribution of the syslog server configuration to
network switches using the CFS infrastructure. By default,
distribution is disabled.
switch(config)# logging
distribute
Step 2
Commits the pending changes to the syslog server
configuration for distribution to the switches in the fabric.
switch(config)# logging commit
Step 3
Cancels the pending changes to the syslog server
configuration.
switch(config)# logging abort
Step 4
(Optional)
Disables the distribution of the syslog server configuration
to network switches using the CFS infrastructure. You cannot
switch(config)# no logging
distribute
Step 5
disable distribution when configuration changes are pending.
See the logging commit and logging abort commands. By
default, distribution is disabled.
(Optional)
Displays the pending changes to the syslog server
configuration.
switch# show logging pending
Step 6
(Optional)
Displays the differences from the current syslog server
configuration to the pending changes of the syslog server
configuration.
switch# show logging
pending-diff
Step 7
(Optional)
Copies the running configuration to the startup configuration.
switch# copy running-config
startup-config
Step 8
Displaying and Clearing Log Files
You can display or clear messages in the log file and the NVRAM.
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
78
Configuring System Message Logging
Displaying and Clearing Log Files