Monitoring, Management & Location Tracking

SNMP walk for Community strings with '!' at the start of in between a community string does not work. Why ?

SNMP walk for Community strings with '!' at the start of in between a community string does not work. 

Example:

When we do a SNMP walk for Airwave for a particular device which has community string starting with or containing '!' in between the community string we get the 
bash error like below:

Scenario 1:  '!' in between the community string:

[root@Airwave mercury]# s2w 10.130.226.30 W!ldfir3

bash: !ldfir3: event not found


Scenario 2" '!' at the start:
 

[root@Airwave mercury]# s2w 10.130.226.30 !shar

bash: !shar: event not found

  

Answer:

Bash is interpreting the bang (!) as a history expansion command. To get around this, surround the community string in single quotes (‘). 

Version history
Revision #:
1 of 1
Last update:
‎06-26-2014 12:23 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.