PurposeCommand or Action
specific VRF is configured, the show-running command
output will list the VRF for each server.
The current Cisco Fabric Services (CFS)
distribution does not support VRF. If CFS
distribution is enabled, the logging server
configured with the default VRF is distributed as
the management VRF.
Note
•
The facility argument names the syslog facility type. The
default outgoing facility is local7.
The facilities are listed in the command reference for the
Cisco Nexus Series software that you are using.
Debugging is a CLI facility but the debug syslogs are
not sent to the server.
Note
(Optional)
Removes the logging server for the specified host.
no logging server host
Example:
switch(config)# no logging
server 172.28.254.254 5
Step 3
(Optional)
Displays the syslog server configuration.
show logging server
Example:
switch# show logging server
Step 4
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
copy running-config
startup-config
Example:
switch(config)# copy
running-config startup-config
Step 5
The following examples show how to configure a syslog server:
switch# configure terminal
switch(config)# logging server 172.28.254.254 5
use-vrf default facility local3
switch# configure terminal
switch(config)# logging server 172.28.254.254 5 use-vrf management facility local3
Configuring syslog on a UNIX or Linux System
You can configure a syslog server on a UNIX or Linux system by adding the following line to the
/etc/syslog.conf file:
facility.level <five tab characters> action
The following table describes the syslog fields that you can configure.
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
76
Configuring System Message Logging
Configuring Syslog Servers