根据 Cisco SNMP object navigator,ifCounterDiscontinuityTime
(1.3.6.1.2.1.31.1.1.1.19) 计数器是sysUpTime
最近一次此接口计数器中的任何一个或多个发生不连续时的值。如何造成这种不连续性?我试图禁用路由器接口(“关机”和“不关机”五秒钟),从路由器端口移除物理电缆五秒钟,但值仍然ifCounterDiscontinuityTime
为零:
# snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.31.1.1.1.19
iso.3.6.1.2.1.31.1.1.1.19.1 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.31.1.1.1.19.2 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.31.1.1.1.19.3 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.31.1.1.1.19.4 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.31.1.1.1.19.5 = Timeticks: (0) 0:00:00.00
#
我什至导致Counter32
类型计数器换行,但ifCounterDiscontinuityTime
保持为零:
$ snmpwalk -v 2c -c public 192.168.1.1 ifInOctets.10107
IF-MIB::ifInOctets.10107 = Counter32: 4278115545
$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.31.1.1.1.19.10107
IF-MIB::ifCounterDiscontinuityTime.10107 = Timeticks: (0) 0:00:00.00
$ snmpwalk -v 2c -c public 192.168.1.1 ifInOctets.10107
IF-MIB::ifInOctets.10107 = Counter32: 18656065
$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.31.1.1.1.19.10107
IF-MIB::ifCounterDiscontinuityTime.10107 = Timeticks: (0) 0:00:00.00
$
192.168.1.1
是 Cisco 交换机,10107
是ifIndex
端口 Gi0/7的 SNMP 。
ifCounterDiscontinuityTime
Cisco IOS中的 SNMP计数器何时更改?