我对路由器不是很熟悉,我的搜索目前证明有点徒劳。我的任务是为我们的路由器创建一个监视器。我使用以下 OID 来获取有关我想要监控的不同接口的相关信息
1.3.6.1.2.1.2.2.1.10
1.3.6.1.2.1.2.2.1.16
1.3.6.1.2.1.2.2.1.2
我发现您必须在 OID 的末尾添加接口索引才能获取特定接口的信息(例如1.3.6.1.2.1.2.2.1.10.2
)
我此时遇到的问题是我必须监控的另一个路由器的接口在物理接口上配置了子接口。当我sh int
可以在界面上看到子界面时。这是信息
FastEthernet0/0/0 is up, line protocol is up
Hardware is FastEthernet, address is
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 6/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 2505000 bits/sec, 364 packets/sec
5 minute output rate 631000 bits/sec, 282 packets/sec
5907895 packets input, 630428948 bytes
Received 8168 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
5162711 packets output, 1548903164 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
1135 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
1 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
FastEthernet0/0/0.10 is up, line protocol is up
Hardware is FastEthernet, address is
Description: VodacomPTP
Internet address is
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 6/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 10.
ARP type: ARPA, ARP Timeout 04:00:00
Keepalive set (10 sec)
Last clearing of "show interface" counters never
FastEthernet0/0/0.20 is up, line protocol is up
Hardware is FastEthernet, address is
Description: Vodacom2Mbps
Internet address is
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 6/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 20.
ARP type: ARPA, ARP Timeout 04:00:00
Keepalive set (10 sec)
Last clearing of "show interface" counters never
FastEthernet0/0/0.30 is up, line protocol is up
Hardware is FastEthernet, address is
Description: Vodacom4Mbps
Internet address is
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 6/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 30.
ARP type: ARPA, ARP Timeout 04:00:00
Keepalive set (10 sec)
Last clearing of "show interface" counters never
我在这个论坛的 MIB 中找到了ifHCInOctets和ifHCOutOctets,但我不确定我应该如何询问这个。因为启动MIB已经比正常的ifInOctets
MIB要长了。
我必须启用 SNMP 吗FastEthernet0/0/0.20
?例如,我必须使用什么 MIB 来获取InOctets
信息。最后我还需要.1
在1.3.6.1.2.1.31.1.1.1.6
MIB的索引中添加一个。