Re: [FORGED] Re: Help graphing MAC address count from Cisco switch
Steve Shipway <[email protected]> Sat, 19 Mar 2016 22:55:50 +0000
| Newsgroups | gmane.network.mrtg.user |
|---|---|
| Message-ID | <5820DC553954E44FA1A36C78323AD148A410C7AC@uxcn10-tdc06.UoA.auckland.ac.nz> |
> >If I run this snmpwalk command: >snmpwalk -v 2c -c public@10 10.0.1.2 .1.3.6.1.2.1.17.4.3.1.1 > >It returns info only for VLAN 10. > >Notice above that I'm using "<snmp_community>@<vlan_number>" followed >by a space, then the SNMP host's IP address. The problem is I can't >seem to figure out how to turn this into a target line in MRTG where I >can specify that I only want information for a certain VLAN. If you want to put an "@" (or any of the other control characters) into your SNMP community, then use a backstroke escape: Target[vlan-10-hosts]: CnTWaLK.1.3.6.1.2.1.17.4.3.1.1&CnTWaLK.1.3.6.1.2.1.17.4.3.1.1:public\@[email protected]:::::2 Presumably, your device has some special handling of an '@number' suffix to the community string to restrict reporting to a specific VLAN. Steve Steve Shipway University of Auckland ITS UNIX Systems Design Lead [email protected] Ph: +64 9 373 7599 ext 86487