[mrtg] [FORGED] Re: Help graphing MAC address count from Cisco switch
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?
send_query: Invalid argument
SNMPv1_Session (remote host: "10" [0.0.0.10].161)
request ID: 2117844684
PDU bufsize: 8000 bytes
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 10.0.1.2 .22.214.171.124.126.96.36.199.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.188.8.131.52.184.108.40.206.3.1.1&CnTWaLK.220.127.116.11.18.104.22.168.3.1.1:public\@10 at 10.0.1.2:::::2
> 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