我想使用SNMP来获取Bundle-Ether的成员,但我找不到合适的Bundle-Ether Mib
看看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)