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

Fred Weston fweston at gmail.com
Sun Mar 20 01:25:03 CET 2016

Thanks for the suggestion.  When I try this:


I receive the error shown below, so it doesn't appear that the string
is being escaped properly because it's interpreting the backslash as
part of the community name and treating the first '@' as the delimited
between community name and host.  Any other ideas?

SNMP Error:
send_query: Invalid argument
SNMPv1_Session (remote host: "10" [].161)
                  community: "public\"
                 request ID: 2117844684
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

On Sat, Mar 19, 2016 at 6:55 PM, Steve Shipway <s.shipway at auckland.ac.nz> wrote:
>>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
> 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