Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
25-5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 25 Configuring System Message Logging
Configuring System Message Logging
The following example shows how to configure the severity level and time-stamp units of messages:
switch# configure terminal
switch(config)# logging module 3
switch(config)# show logging module
switch(config)# logging level aaa 2
switch(config)# logging timestamp milliseconds
switch(config)# show logging timestamp
switch(config)# copy running-config startup-config
Configuring syslog Servers
You can configure up to three syslog servers that reference remote systems where you want to log system
messages.
For information about distributing the syslog configuration on the fabric, see the “Configuring syslog
Server Configuration Distribution” section on page 25-7.
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
Step 4
switch(config)# logging level facility
severity-level
Enables logging messages from the specified facility
that have the specified severity level or higher.
Severity levels, which range from 0 to 7, are listed in
Table 25-1. To apply the same severity level to all
facilities, use the all facility. For defaults, see the
show logging level command.
switch(config)# no logging level
[facility severity-level]
Resets the logging severity level for the specified
facility to its default level. If you do not specify a
facility and severity level, the switch resets all
facilities to their default levels.
Step 5
switch(config)# show logging level
[facility]
(Optional) Displays the logging level configuration
and the system default level by facility. If you do not
specify a facility, the switch displays levels for all
facilities.
Step 6
switch(config)# logging timestamp
{microseconds | milliseconds | seconds}
Sets the logging time-stamp units. By default, the
units are seconds.
switch(config)# no logging timestamp
{microseconds | milliseconds | seconds}
Resets the logging time-stamp units to the default of
seconds.
Step 7
switch(config)# show logging timestamp
(Optional) Displays the logging time-stamp units
configured.
Step 8
switch(config)# copy running-config
startup-config
(Optional) Copies the running configuration to the
startup configuration.
Command Purpose