>
>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


_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to