如何使用snmp获取Bundle-Ether的成员?

问题描述 投票:0回答:1

我想使用SNMP来获取Bundle-Ether的成员,但我找不到合适的Bundle-Ether Mib

snmp cisco mib
1个回答
1
投票

看看ifStackStatus上的IF-MIB::ifStackTable条目。如果你知道Bundle-Ether的ifIndex,例如173,你可以得到更低层的ifIndexes:

$ snmpwalk -v2c -c public 10.77.136.6 ifName.173
IF-MIB::ifName.173 = STRING: Bundle-Ether5
$ snmpwalk -v2c -c public 10.77.136.6 ifStackStatus.173
IF-MIB::ifStackStatus.173.72 = INTEGER: notInService(2)
IF-MIB::ifStackStatus.173.98 = INTEGER: active(1)
$ snmpget -v2c -c public 10.77.136.6 ifName.72 ifName.98 ifOperStatus.72 ifOperStatus.98
IF-MIB::ifName.72 = STRING: TenGigE0/1/0/0
IF-MIB::ifName.98 = STRING: TenGigE0/1/0/27
IF-MIB::ifOperStatus.72 = INTEGER: down(2)
IF-MIB::ifOperStatus.98 = INTEGER: up(1)
© www.soinside.com 2019 - 2024. All rights reserved.