TECH TIP: nhSnmpTool and Community Strings with Special Characters

Document created by justin_leong Employee on Jul 21, 2014Last modified by SamCreek on Dec 17, 2016
Version 3Show Document
  • View in full screen mode

If you are having trouble producing a MIB dump of the device and you have special characters in your community string, for example '$', please enclose the community string in curly brackets, {commString}.  This applies to all Operating Systems. Below is an example of what you might see if you use special characters in your community string.

 

SCENARIO

nhSnmpTool -c Abc@de1$t! -t 20 -f device.walk 10.2.3.40

 

Querying SNMP data. Output is being written here:

device.walk

 

ERROR: Error when sapwalk2:

can't read "t": no such variable

 

SOLUTION

Enclose the community string in curly brackets.

 

nhSnmpTool -c {Abc@de1$t!} -t 20 -f device.walk 10.2.3.40

Attachments

    Outcomes