在“显示日志”中看不到日志

网络工程 思科
2022-02-14 12:35:22

我无法在 Cisco Nexus C9372PX 中看到自 3 月 8 日起的任何新日志,我的日志记录配置如下:

CORENEXUS02# show logging 

Logging console:                enabled (Severity: critical)
Logging monitor:                enabled (Severity: notifications)
Logging linecard:               enabled (Severity: notifications)
Logging timestamp:              Seconds
Logging source-interface :      enabled (Interface: loopback11)
Logging server:                 enabled
{10.22.34.116}
        server severity:        notifications
        server facility:        local7
        server VRF:             lan
        server port:            5560
Logging logflash:               enabled (Severity: notifications)
Logging logfile:                enabled

CORENEXUS02# show  running-config | include logging
logging level snmpd 3
ntp logging
logging server 10.22.34.116 5 port 5560 use-vrf lan
logging source-interface loopback11

没有日志发送到 syslog 或显示在显示日志中。

似乎记录过程已停止或根本不工作。我可以做些什么来排除故障?

3个回答

我认为您正在使用 NX-OS,并且至少有一些回复假定为 IOS。

与您的问题无关的一件事……您称其为“核心”关系。我假设这意味着 N7k 或 9500。9500 是否支持 VDC?至少 7k 可以,建议创建一个“管理员”VDC。该管理员 VDC 是您配置 NTP 的位置;似乎 NTP 是在生产 VDC 中配置的。

无论如何,回到手头的问题:

查看您的输出,您似乎只是在记录 SNMPd 进程。很有可能没有什么可记录的。

此外,您确定将日志流量发送到正确的 VRF 吗?您使用过 VRF “lan” - 设置是否正确?

这是我在 Nexus 7010 上的(工作)配置。我已经修改了路由器名称和 IP,但你明白了。

N7k# sh run all | inc ^logging
logging message interface type ethernet description
logging event link-status default
logging event trunk-status default
logging event link-status enable
logging event trunk-status enable
logging server [redacted] 7 use-vrf management facility local4
logging source-interface loopback0
logging monitor 5
N7k#
N7k#
N7k# sh run vrf management

!Command: show running-config vrf management
!Time: Mon Dec 16 14:42:25 2019

version 7.3(3)D1(1)

interface mgmt0
  vrf member management
vrf context management
  ip route 0.0.0.0/0 [redacted]

N7k# 
N7k# 
N7k# 
N7k# sh run int lo0

!Command: show running-config interface loopback0
!Time: Mon Dec 16 14:43:45 2019

version 7.3(3)D1(1)

interface loopback0
  ip address [redacted]/32
  ipv6 address [redacted]/128

N7k#
N7k# sh logg last 5
2019 Dec 16 14:44:01 N7k %L2FM-2-L2FM_CONTINUOUS_MAC_MOVE: Mac Address (0050.569e.214d) in Vlan 1210 is moving continuously
2019 Dec 16 14:44:43 N7k %L2FM-2-L2FM_CONTINUOUS_MAC_MOVE: Mac Address (0050.569e.789d) in Vlan 1210 is moving continuously
2019 Dec 16 14:45:41 N7k %L2FM-2-L2FM_CONTINUOUS_MAC_MOVE: Mac Address (0050.568b.7bd2) in Vlan 1204 is moving continuously
2019 Dec 16 14:46:43 N7k %L2FM-2-L2FM_CONTINUOUS_MAC_MOVE: Mac Address (0050.56b5.02f4) in Vlan 1204 is moving continuously
2019 Dec 16 14:46:55 N7k %L2FM-2-L2FM_CONTINUOUS_MAC_MOVE: Mac Address (0050.569e.1507) in Vlan 1225 is moving continuously
N7k# 

日志服务器 xx.xx.xx.xx 6 使用-vrf 默认

执行显示系统内部闪存以查看您内部剩余的空间。当系统将其日志填充到 100% 时,它无法执行任何日志记录功能。我的建议是关闭设备上的日志记录并仅登录到系统日志服务器。