On my systems I have the /etc/snmp/hosts/ directory which contains files that look like:
10.11.12.13.conf and each file then contains: defVersion 3 defSecurityName v3user defSecurityLevel authPriv defAuthType SHA defAuthPassphrase "My Super SHA Secret" defPrivType AES defPrivPassphrase "My AES secret words" so all I have to issue is: snmpwalk 10.11.12.13 {whatever OID I need} Does that help? BTW - with carefull use of groups and users these files can be locked down with very strong permission based security. I run PakSecured so not certain where Ubuntu places the config files. Try man snmp_config On Tue, 17 Feb 2015, 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? > > Cheers, > > JOHN MORTON > System Network Engineer -------------------------------------------------- Matthew G. Marsh, President Paktronix Systems LLC 1602 North 59th Street Omaha NE 68104-4832 Phone: (402) 932-7250 Email: pa...@paktronix.com WWW: http://www.paktronix.com -------------------------------------------------- ------------------------------------------------------------------------------ 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