Try:

SNMP::register_debug_tokens("read_config,snmp_build,snmp_send,snmpv3");
$SNMP::debugging = 2;

to see what it's doing.  In theory the per-host files are read deep inside
the transport, which perl can't avoid using, but using the debugging may
help see what's happening.  When I was reading the code for the snmpapp
initialization, I found that it was using the default version from the data
store too early, so while the data store was updated from the per-host
file, it was too late for that to have any effect.  Perhaps the whole
session is being initialized in the perl bindings before the per-host file
is able to be read.

  Bill


On Sat, Apr 4, 2015 at 1:13 PM, Matthew G. Marsh <m...@paktronix.com> wrote:

>
> Just looking for a pointer to where I can find documentation/examples on
> how to get the perl module to read in the /etc/snmp/hosts/xxx
> configuration files.
>
> The command line utilities work flawlessly using these files.
>
> Would prefer not to have to read in the config file and manually parse it.
>
> Am looking to try and remove all hardcoded passphrases from the perl scrip
> files.
>
> TIA for any help!
>
> --------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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