This document describes troubleshoot procedures used in order to fix logging problems on the Cisco Nexus 7000 (N7K) platform. Specifically, this document describes two targeted scenarios: when the switch does not send new logs to the local logfile and when the new logs are dropped or delayed in transit to the local logfile and syslog server.
This section describes how to troubleshoot a N7K switch if log messages do not display in the local logfile buffer. In order to troubleshoot these issues, complete these steps:
Nexus# show logging level ethpm
Facility Default Severity Current Session
Severity
-------- ---------------- ---------------
ethpm 5 5
0(emergencies) 1(alerts) 2(critical)
3(errors) 4(warnings) 5(notifications)
6(information) 7(debugging)
Nexus# show logging
Logging logfile:enabled
Name - test2: Severity -
notifications Size -
10000000
Nexus# show system internal flashIn this output, /var/log is 100% used.
Mount-on 1K-blocks Used Available Use% Filesystem
/ 409600 61104 348496 15 /dev/root
/proc 0 0 0 0 proc
/sys 0 0 0 0 none
/isan 716800 315088 401712 44 none
/var 51200 612 50588 2 none
/etc 5120 1616 3504 32 none
/nxos/tmp 40960 4 40956 1 none
/var/log 51200 51200 0 100 none
Nexus# show system internal dir /var/log/external/If it is very large, then delete the libdt_helper.log file from the directory with this command:
./ 420
../ 380
glbp.debug 231
libfipf.24944 0
vdc_4/ 80
libfipf.24115 0
vdc_3/ 80
libfipf.23207 0
vdc_2/ 80
libdt_helper.log 51523584
libfipf.5582 0
libfipf.4797 0
libfipf.4717 0
messages 651264
syslogd_ha_debug 19184
startupdebug 0
eobc_port_test_result 3
mgmt_port_test_result 3
bootup_test.log 18634
bootup_test.3432 2526
dmesg@ 31
Nexus# delete log:libdt_helper.logBack up the old messages in the local logging buffer to a file on bootflash with this command:
Nexus#
Nexus# show logging log > bootflash:oldlogs.txtThis command redirects the output to a file on bootflash called oldlogs.txt. This keeps a copy of the old logs because the local logging buffer must be cleared next with this command:
Nexus#
Nexus# clear logging logfile
Nexus#
Nexus# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Nexus(config)# end
Nexus# show logging log
2013 Jul 30 11:53:55 Nexus %SYSLOG-1-SYSTEM_MSG :
Logging logfile (test2) cleared by user
2013 Jul 30 11:55:35 Nexus %VSHD-5-VSHD_SYSLOG_CONFIG_I:
Configured from vty by admin on dhcp-peg3-vl30-144-254-7-77.ci
Nexus#
New log messages sent to the syslog server and/or to the local logfile buffer might exhibit a delay (possibly between five to eight minutes). Some of the log messages might be dropped. The log timestamp either shows the timestamp of the actual event or the timestamp of message transmission to the syslog server or logfile buffer.
If any or all of these symptoms are encountered, then verify that:
Nexus# show debugIn this example, L2FM and ARP debugs are enabled.
Debug level is set to Minor(1)
L2FM Daemon:
Trace Detail is on
default for new sessions logging level: 3
debug ip arp event
debug ip arp packet
Nexus#
Nexus# show logging levelThe log messages are stored in an internal, circular buffer before they are delivered to the syslog/logfile. The number of messages held in this circular buffer is viewed with this command:
Facility Default Severity Current Session
Severity
-------- ---------------- ---------------
aaa 3 3
acllog 2 2
aclmgr 3 3
auth 0 0
authpriv 3 3
Nexus# show logging internal info |In this example, the buffer has (head - tail) 8632 - 7333 = 1299 messages.
include circular
Pending msgs in circular buffer
(head: 8632, tail: 7333)
Revision | Publish Date | Comments |
---|---|---|
1.0 |
05-Sep-2013 |
Initial Release |