Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

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

Jun 26, 2014 03:23 PM

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 (‘). 

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.