Tuesday, July 21, 2009

STP and SNMP

Walk the SNMP tree for Bridge STP info:

snmpwalk -c community -v 1 ip-address BRIDGE-MIB::dot1dStp


Get the bridge's current root:

snmpget -c community -v 1 ip-address BRIDGE-MIB::dot1dStpDesignatedRoot.0


Get this bridge's ID:

snmpget -c community -v 1 ip-address BRIDGE-MIB::dot1dBaseBridgeAddress.0

No comments:

Post a Comment