EasyManua.ls Logo

Cisco Nexus 9000 Series - Chapter 4: Configuring IP Fabric for Media; Prerequisites; Guidelines and Limitations

Cisco Nexus 9000 Series
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
You should configure the syslog server so that the Cisco NX-OS messages are logged to a different file
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:
Note
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: enabled
{172.22.36.211}
server severity: notifications
server facility: local1
server VRF: management
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:
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x
7
Overview
Syslog Server Implementation

Table of Contents

Other manuals for Cisco Nexus 9000 Series

Related product manuals