SNMP代理在初始化时发送coldStart陷阱。在进行故障排除时,您可以使用本文档中的信息帮助确定设备重新加载的原因。
本文档的读者应了解SNMP陷阱,这包括将对象ID转换为对象名称的功能。
用户应熟悉的特定SNMP对象包括:
本文档不限于特定的软件和硬件版本。
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
以下各节介绍路由器上出现冷启动陷阱的原因。
Oct 13 13:10:17 nms-server2 snmptrapd[223]: 1.2.3.4: Cold Start Trap (0) Uptime: 0:00:24.57, system.sysUpTime.sysUpTimeInstance = Timeticks: (2457) 0:00:24.57, enterprises.cisco.local.lsystem.whyReload.0 = "reload"
reload show version命令指示系统通过重新加载返回到ROM。
Oct 13 13:19:23 nms-server2 snmptrapd[223]: 1.2.3.4 [1.2.3.4]: Trap system.sysUpTime.sysUpTimeInstance = 1984, .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap. snmpTrapOID.0 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps. coldStart, system.sysUpTime.sysUpTimeInstance = Timeticks: (1984) 0:00:19.84, enterprises.cisco.local.lsystem.whyReload.0 = "power-on"
show version命令指示系统通过通电返回到ROM。
Oct 13 13:12:05 nms-server2 snmptrapd[223]: 1.2.3.4 [1.2.3.4]: Trap system.sysUpTime.sysUpTimeInstance = 1984, .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap. snmpTrapOID.0 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps. coldStart, system.sysUpTime.sysUpTimeInstance = Timeticks: (1984) 0:00:19.84, enterprises.cisco.local.lsystem.whyReload.0 = "error - Signal 23, Exception code (0x0024)!, PC 0x801E2EC0"
show version命令指示系统返回ROM时出错 — Signal 23, Exception code(0x0024)!, PC 0x801E2EC0。
当管理员通过Telnet连接到路由器并在路由器崩溃时执行某些任务时,您可能也会看到此陷阱。此陷阱SNMP v2c)在路由器崩溃重新加载后启动时生成。
Oct 13 13:37:42 nms-server2 snmptrapd[223]: 1.2.3.4 [1.2.3.4]: Trap system.sysUpTime.sysUpTimeInstance = 8287, .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap. snmpTrapOID.0 = OID: enterprises.cisco.cisco#.tcpConnectionClose, enterprises.cisco.local.lts.ltsLineSessionTable.ltsLineSessionEntry. tslineSesType.2.1 = telnet(5), tcp.tcpConnTable.tcpConnEntry.tcpConnState.14.32.12.254.80.172.18.123.68.43280 = finWait2(7), enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnElapsed. 14.32.12.254.80.172.18.123.68.43280 = Wrong Type (should be Timeticks): 17, enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnInBytes. 14.32.12.254.80.172.18.123.68.43280 = 66, enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnOutBytes. 14.32.12.254.80.172.18.123.68.43280 = 168, enterprises.cisco.local.lts.ltsLineTable.ltsLineEntry.tsLineUser.2 = ""
或者
如果IP连接可用于陷阱在路由器重新加载之前退出,您可能会看到此陷阱(SNMP v1)。
Oct 13 14:35:55 nms-server2 snmptrapd[223]: 1.2.3.4: Enterprise Specific Trap (tcpConnectionClose) Uptime: 0:04:15.25, enterprises.cisco.local.lts.ltsLineSessionTable.ltsLineSessionEntry. tslineSesType.130.1 = telnet(5), tcp.tcpConnTable.tcpConnEntry.tcpConnState.10.5.1.123.23.172.18.123.33.1840 = established(5), enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnElapsed. 10.5.1.123.23.172.18.123.33.1840 = Wrong Type (should be Timeticks): 19504, enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnInBytes. 10.5.1.123.23.172.18.123.33.1840 = 93, enterprises.cisco.local.ltcp.ltcpConnTable.ltcpConnEntry.loctcpConnOutBytes. 10.5.1.123.23.172.18.123.33.1840 = 1766, enterprises.cisco.local.lts.ltsLineTable.ltsLineEntry.tsLineUser.130 = "cse"
注意:示例2和3来自配置为生成SNMP v2c的路由器,而示例1和4来自配置为生成SNMP v1陷阱的路由器。
Oct 13 14:30:23 nms-server2 snmptrapd[223]: 1.2.3.4: Enterprise Specific Trap (reload) Uptime: 0:03:05.98, system.sysUpTime.sysUpTimeInstance = Timeticks: (18598) 0:03:05.98, enterprises.cisco.local.lsystem.whyReload.0 = "snmp shutdown request"
路由器重新加载后的show version命令显示系统通过重新加载返回到ROM。
注意:这些Bug与Catalyst 2900/3500 XL交换机中未生成的coldStart陷阱有关:CSCdy10697 (仅注册客户)、CSCdp41669 (仅注册客户)和CSCdm02220 (仅注册客户)。