hi,
I'm running win2000
I am at my teathers end with trying to call a subroutine from a package that
I have installed via PPM utility. THe package seemed to install ok and
verify and query come back good. But when ever I refenerce it I get "Can't
locate object method "snmpget" via package "SNMP_Util" at luke1.pl line 12".
I've mannually checked the perl\site\lib directory and the PM modules are
there, if I move the modules I get another error saying can't locate the
packages @INC which I think is to be expected.
Please help very frustrated.
I have set my paths to
PERLLIB=d:\perl\lib;d:\perl\site\lib;
PERL5LIB=d:\perl\lib; d:\perl\site\lib;
PATH=d:\perl\bin; d:\perl\lib; d:\perl\site\lib;
Registry settings HKEY_LOCAL_MACHINE\Software\perl\lib:d:\perl\lib &
sitelib:d:\perl\site\lib
sample code
1.use SNMP_Util;
2.use BER;
3.
4.
5.$host="10.xx.xx.xx";
6.$location="Public";
7.$port=161;
8.$oid1="1.3.6.1.2.1.1.1.0";
9.
10.sub main {
11.
12.($response) = SNMP_Util->snmpget($host,$oid1);
13.
etc
print "GET $oid1 : $response\n";
}
main;
exit(0)
cheers
Luke
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl