Log in to ask questions, share your expertise, or stay connected to content. Don’t have a login? Join now.
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 foundScenario 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 (‘).
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.