Hello,

Forgive me if this is in the wrong location.. I'm incredibly green. anyways i am attempting to setup a system to use the snmp functions of perl. i have installed perl and net-snmp along with basic perl libraries, the Net::SNMP and SNMP_Session libraries

when i try to start a SNMP session by using:
$session = new SNMP::Session(DestHost => $host, Community => $community);

the script crashes with the error:
Can't locate object method "new" via package "SNMP::Session" (perhaps you forgot to load "SNMP::Session"?) at perlscript1.pl line 35.


So after looking at the available perl libraries it appears that SNMP4.2.0 is the one that i need to install in order to perform this function. unfortunately when i attempt to do so either via cpan or the source package it returns :

WARNING: MAN3PODS takes a hash reference not a string/number.
Please inform the author.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lsnmp
Can't use string ("SNMP") as a HASH ref while "strict refs" in use at /usr/lib/perl5/vendor_perl/5.8.5/ExtUtils/MM_Unix.pm line 504.


can someone tell me where i'm going wrong, i'm sure it's an extremely simple thing that i've overlooked.

Thanks,

Kesin




------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to