본문 바로가기

카테고리 없음

Install Net Snmp Perl Module

  1. Install Net Snmp
  2. Net-snmp Perl Module
  3. Installing The Net-snmp Perl Module On Windows
  4. Net-snmp For Windows
  5. Net Snmp Examples
Active1 year, 1 month ago

Simple Network Management Protocol (SNMP) is a protocol which is widely used for monitoring network-attached devices, including routers, switches, servers, and more, for conditions that require administrative attention. Net-SNMP is a set of tools and libraries for using and deploying the SNMP. The Perl5 'SNMP' Extension Module for the Net-SNMP SNMP. The perl SNMP 5.0 module which comes with net-snmp 5.0 and higher is different. To install SNMP.

as to the title, i faced error Can't locate Net/SNMP.pm in @INC (you may need to install the Net::SNMP module while trying to run my perl script from netbeans. Its clearly says i need to install Net::SNMP module. But, i have already installed net-snmp module on my windows tho, and configure it by following this tutorial . is Net::SNMP and net-snmp different? if yes, how to install Net::SNMP on windows 8.1 and 10 ? i already installed activeperl and also net-snmp on my computer. feels hopeless because already done some research yet still unable to found solution to solve this problem.

any help are greatly appreciated. thank you

Install Net Snmp Perl Modulemiken32
27.2k10 gold badges53 silver badges76 bronze badges
Albert Leonardo PisaAlbert Leonardo Pisa

1 Answer

You should print @INC magic array to know where perl looks for installed modules. Check whether Net/SNMP.pm is somewhere there.

To add another path to @INC use -I switch for perl or PERL5LIB environment variable.

Vadim PushtaevVadim Pushtaev
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged perlnetbeansnet-snmp or ask your own question.

This is a Good Answer article. It was likely created as a response to a question on a Net-SNMP Mailing List and written up here for others to see. It likely covers material not yet in the FAQ or in the Tutorial but may someday be moved there

Question

Which Perl SNMP module should I use?

Install Net Snmp

Answer

Net-snmp Perl Module

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 orNet::SNMP from CPAN - but the reasons are different for each ofthese two packages.

You shouldn't install Net::SNMP because the SNMP::Infomodule is not written to use the Net::SNMP api. It's the wrongpackage 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 onerelease to another, which wouldn't affect most applicationsbut can break the perl internals.

Installing The Net-snmp Perl Module On Windows

The safest approach is to install the SNMP perl modules fromthe same Net-SNMP distribution as the C libraries that you areusing. 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 APIsas well. If you compiled things yourself from source, then

./configure --with-perl-modules

Net-snmp For Windows

will build the correct perl API modules as well.

Net Snmp Examples

Retrieved from 'http://net-snmp.sourceforge.net/wiki/index.php?title=Which_Perl_module_should_I_use&oldid=3277'