I am using 5.7.2 and it works flawlessly. Not sure what John was running. 
He seemed to be asking how to do the snmp_conf_Dir/hosts/XXX files.

I am asking in a separate thread about the Perl module (SNMP) that ships 
with Net-SNMP and whether it should read those hosts files. The Readme 
states that SNMP now calls init_snmp which should read the usual config 
files BUT when I strace, perl never looks at the 
Ssnmp_config_dir/hosts/XXX files - only at the 
snmp_config_dir/{snmp,perl}.conf files

Any clues on the Perl parts? The hosts files work fine for me.

Thanks!

On Mon, 6 Apr 2015, Bill Fenner wrote:

> What net-snmp version are you using?
> https://sourceforge.net/p/net-snmp/bugs/2611 seems to have established that
> while these files are read, they have no effect in net-snmp 5.7.3 because
> the security parameters are read from the data store before the file is
> read.
>
>  Bill
>
>
> On Sat, Apr 4, 2015 at 1:20 PM, Matthew G. Marsh <m...@paktronix.com> wrote:
>
>>
>> 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
>>
>

--------------------------------------------------
Matthew G. Marsh,  President
Paktronix Systems LLC
1602 North 59th Street
Omaha  NE  68104-4832
Phone: (402) 932-7250
Email: m...@paktronix.com
WWW:  http://www.paktronix.com
--------------------------------------------------

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to