Re: Which SNMP module is needed

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 18/12/2007, LICON, RAY (ATTPB) <[email protected]> wrote:
>  I want to do development work in Perl using SNMP gets and sets into
> CISCO equipment. I started looking at the SNMP::Info module, which
> specifically states not to install SNMP:: or Net::SNMP from CPAN.  It
> suggests source forge and net-snmp, but after reading the docs for the
> CPAN Perl5 SNMP:: module, I'm more confused than ever. Which core SNMP
> module is usable with other modules such as SNMP::Info? What should I
> install?


There are basically two alternative SNMP perl modules.
One is a "pure-perl" implementation, called "Net::SNMP"
and develeped by David Town.
The other is a perl interface to the Net-SNMP C libraries,
which comes as two separate packages - SNMP and Net-SNMP.
These are therefore closely linked with the C library code.

The SNMP::Info module is a higher-level convenience module,
using the Net-SNMP perl modules (i.e. SNMP/Net-SNMP).


The SNMP::Info documentation tells you not to install SNMP or
Net::SNMP from CPAN - but the reasons are different for each of
these two packages.

   You shouldn't install Net::SNMP because the SNMP::Info
module is not written to use the Net::SNMP api.   It's the wrong
package for this module, so there's no point in installing it.

  You *should* install SNMP/Net-SNMP - but not from CPAN.
Because these modules are closely linked with the C library,
they rely on having the correct version of the library installed.
There can be minor changes to the library internals from one
release to another, which wouldn't affect most applications
but can break the perl internals.

  The safest approach is to install the SNMP perl modules from
the same Net-SNMP distribution as the C libraries that you are
using.   That's the most reliable way to ensure compatibility.

If you are using a vendor-supplied version of the Net-SNMP suite,
then they ought to provide a package that includes the perl APIs
as well.   If you compiled things yourself from source, then

   ./configure --with-perl-modules

will build the correct perl API modules as well.


I trust that makes things a bit clearer.

Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.