[mrtg] Re: How to collect the MAC address in 2950 by SNMP

McDonald, Dan Dan.McDonald at austinenergy.com
Wed May 21 20:07:18 MEST 2003


 >From: Benjamin
>How to collect the MAC address in 2950 by SNMP

It's in the BRIDGE-MIB, but you have to change the community string for each
vlan.

Something like:
snmpwalk -c public\@2 the-2950.domain.tld -m BRIDGE-MIB dot1dTpFdbAddress
In order to see vlan 2, and
snmpwalk -c public\@32 the-2950.domain.tld -m BRIDGE-MIB dot1dTpFdbAddress
to see vlan 32.  The \ is there because both bash and perl attempt to
interpolate @ unless you escape it with a \.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list