On Tue, Feb 17, 2015 at 05:15:04AM +0000, John Morton wrote: > With regards to running native SNMPWALK from an Ubuntu server, and trying to > use the following string: > > snmpwalk -v 3 -u ******* -a SHA -A f&hDbv*(g-q4 -x AES -X ******** XX.XX.XX.XX > > the underlined password stops the command completing, I assume because of one > of the special characters contained within. > > Is there a way to encapsulate this password, so I can use it in the string? > Or a way to call an external file with the credentials within it when I do > the SNMPWALK?
Yes. You have to protect the password from the shell, the simplest way to do that is to encapsulate it in ''. If there are a ' in the password then you have to do it some other way - this is all described in the shell manual page. Try the command snmpwalk -v 3 -u '*******' -a SHA -A 'f&hDbv*(g-q4' -x AES -X '********' XX.XX.XX.XX and see if it works better. /MF ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders