This is more a "notes to myself" entry, but here are the couple of OIDs I keep misplacing:
get the list of operational vlans on the switch
snmpwalk -c commstring MySwitch 188.8.131.52.184.108.40.206.220.127.116.11.1.2
get the list of mac addresses the switch knows about per VLAN
snmpwalk -c comstring MySwitch@VLAN .18.104.22.168.22.214.171.124.3.1.1
for whatever VLAN is. So, it would be "MySwitch@177" for vlan 177.
Interface names for each port (not descriptions/port-names, names)
snmpwalk -c commstring MySwitch .126.96.36.199.188.8.131.52.1.1.1
IF-MIB::ifName.2 = STRING: Gi1/1
IF-MIB::ifName.3 = STRING: Gi1/2
Subscribe to: Post Comments (Atom)
- ▼ June (9)
- Regis has worked as a network engineer since 1994 for small companies and for large companies.
Post a Comment