Posts

Showing posts with the label Net-SNMP

Can't locate Net/SNMP.pm in @INC

If you get error " Can't locate Net/SNMP.pm in @INC" while executing a perl script , and in your script syntax is as below, where Net::SNMP module is in use. use strict; use Net::SNMP; use Getopt::Long; Then use the following step to install Net SNMP Solution :-- Login as a Super user (root) user on machine.  Login to CPAN shell with following command. #perl -MCPAN -e shell cpan> install Bundle::CPAN cpan[1]> reload cpan  cpan[1]> reload index cpan[1]> install Net::SNMP  cpan[1]> install Getopt::Long cpan> exit Terminal does not support GetHistory. Lockfile removed. # After all this try to execute your script ..hopefully your problem will be resolved.

Installing Net-SNMP on Solaris OS

Introduction: Sun OS versions previous to Solaris10 come configured with the Sun SNMP agent. Solaris has started shipping Net-SNMP with Solaris10 as an alternative to the Sun SNMP agent, this guide is designed to offer a road-map for installing Net-SNMP on versions older than Solaris10 so that users can utilize both the inclusion of the HOST-MIB Tree (Disk and CPU monitoring) and the use of SNMPv3 (encryption of SNMP traffic over a network) within these previous OS's (capability unavailable in the Sun SNMP agent). Check For Sun SNMP Agent: Before we start we need to check for the existence of the Sun SNMP agent and turn it off if it is running. To do so run the following command from the command line: Code: ps -ef | grep snmp