Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

Configuring syslog Servers
You can configure up to three syslog servers that reference remote systems where you want to log system
messages.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Configures a syslog server at the specified host name or
IPv4 or IPv6 address. You can limit logging of messages
switch(config)# logging server host
[severity-level [usr-vrf vrf-name
[facility facility]]]
Step 2
with a minimum severity level and for a specific facility.
Severity levels range from 0 to 7:
0 emergency
1 alert
2 critical
3 error
4 warning
5 notification
6 informational
7 debugging
The default outgoing facility is local7.
(Optional)
Removes the logging server for the specified host.
switch(config)# no logging server
host
Step 3
Step 4
(Optional)
Displays the syslog server configuration.
switch# show logging server
Step 5
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 6
The following example shows how to configure a syslog server:
switch# configure terminal
switch(config)# logging server 172.28.254.254 5 use-vrf VRFname facility local3
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
342 OL-16597-01
Configuring System Message Logging
Configuring syslog Servers