Cisco Nexus 9000 Series Troubleshooting Manual page 19

Nx-os release 7.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Overview
You should configure the syslog server so that the Cisco NX-OS messages are logged to a different file
Note
from the standard syslog file so that they cannot be confused with other non-Cisco syslog messages. Do
not locate the logfile on the / file system. You do not want log messages to fill up the / file system. This
example uses the following values:
• syslog client: switch1
• syslog server: 172.22.36.211
• (Solaris) syslog facility: local1
• syslog severity: notifications (level 5, the default)
• File to log Cisco NX-OS messages to: /var/adm/nxos_logs
To configure the syslog feature on Cisco NX-OS, follow these steps:
1 switch# config terminal
2 switch(config)# logging server 192.0.2.1 6 facility local1
Use the show logging server command to verify the syslog configuration.
switch1# show logging server
Logging server:
{172.22.36.211}
To configure a syslog server, follow these steps:
1 Modify /etc/syslog.conf to handle local1 messages. For Solaris, you must allow at least one tab between
the facility.severity and the action (/var/adm/nxos_logs).
local1.notice /var/adm/nxos_logs
2 Create the log file.
touch /var/adm/nxos_logs
3 Restart the syslog process.
/etc/init.d/syslog stop
/etc/init.d/syslog start
syslog service starting.
4 Verify that the syslog process has started.
ps -ef |grep syslogd
Test the syslog server by creating an event in Cisco NX-OS. In this case, port e1/2 was shut down and reenabled,
and the following was listed on the syslog server. The IP address of the device is listed in brackets.
tail -f /var/adm/MDS_logs
Sep 17 11:07:41 [172.22.36.142.2.2] : 2013 Sep 17 11:17:29 pacific:
PORT-5-IF_DOWN_INITIALIZING: %$VLAN 1%$ Interface e 1/2 is down (Initializing)
Sep 17 11:07:49 [172.22.36.142.2.2] : 2013 Sep 17 11:17:36 pacific: %PORT-5-IF_UP: %$VLAN
1%$ Interface e 1/2 is up in mode access
Sep 17 11:07:51 [172.22.36.142.2.2] : 2013 Sep 17 11:17:39 pacific:
server severity:
server facility:
server VRF:
enabled
notifications
local1
management
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x
Syslog Server Implementation
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents