Troubleshooting With Logs - Cisco Nexus 1000V Troubleshooting Manual

Hide thumbs Also See for Nexus 1000V:
Table of Contents

Advertisement

Troubleshooting with Logs

S e n d d o c u m e n t c o m m e n t s t o n e x u s 1 k - d o c f e e d b a c k @ c i s c o . c o m .
Logging server: enabled
{192.0.2.1}
Configure the syslog server:
Step 2
Test the syslog server by creating an event in Cisco Nexus 1000V. In this case, port e1/2 was bounced
Step 3
and the following was listed on the syslog server. Notice that the IP address of the switch is listed in
brackets.
# tail -f /var/adm/nxos_logs
Sep 17 11:07:41 [172.22.36.142.2.2] : 2004 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] : 2004 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] : 2004 Sep 17 11:17:39 pacific:
%VSHD-5-VSHD_SYSLOG_CONFIG_I: Configuring console from pts/0
(dhcp-171-71-49-125.cisco.com)
Troubleshooting with Logs
Cisco Nexus 1000V generates many types of system messages on the switch and sends them to a syslog
server. These messages can be viewed to determine what events may have led up to the current problem
condition you are facing.
Viewing Logs
Use the following commands to access and view logs in Cisco Nexus 1000V:
n1000v# show logging ?
console
info
internal
last
level
logfile
Cisco Nexus 1000V Troubleshooting Guide, Release 4.2(1)SV2(2.1)
1-6
server severity: notifications
server facility: local1
Modify /etc/syslog.conf to handle local1 messages. For Solaris, there needs to be at least one
a.
tab between the facility.severity and the action (/var/adm/nxos_logs).
#Below is for the NX-OS logging
local1.notice /var/adm/nxos_logs
Create the log file.
b.
#touch /var/adm/nxos_logs
Restart syslog.
c.
# /etc/init.d/syslog stop
# /etc/init.d/syslog start
syslog service starting.
Verify syslog started.
d.
# ps -ef |grep syslogd
root 23508 1 0 11:01:41 ? 0:00 /usr/sbin/syslogd
Show console logging configuration
Show logging configuration
syslog syslog internal information
Show last few lines of logfile
Show facility logging configuration
Show contents of logfile
Chapter 1
Overview of Troubleshooting
OL-25387-01

Advertisement

Table of Contents
loading

Table of Contents