[mrtg] [FORGED] Re: Help graphing MAC address count from Cisco switch

Steve Shipway s.shipway at auckland.ac.nz
Sat Mar 19 23:55:50 CET 2016

>If I run this snmpwalk command:
>snmpwalk -v 2c -c public at 10 .
>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.\@10 at

Presumably, your device has some special handling of an '@number' suffix to the community string to restrict reporting to a specific VLAN.


Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487

More information about the mrtg mailing list