[c-nsp] Question Perl Net::SNMP
Frank Paulsen
sysmailunix at yahoo.de
Wed Mar 9 06:42:37 EST 2005
Hello NG,
this is my Script:
#!/usr/bin/perl -w
###########################################################################
# #
# Mein erstes Perl Programm was ich selber geschrieben
habe #
# #
# Funktion: SNMPWALK abfrage auf einem
Router #
# Version:
0.1 #
# Datum:
09/03/2005 #
# Verfasser: Frank
Paulsen #
# Email:
sysmailunix at yahoo.de #
# #
###########################################################################
use strict;
use SNMP::Util;
$snmp = new SNMP::Util( -device => '10.10.10.10',
-community => 'public',
-timeout => 5,
-retry => 0,
-poll => 'on',
-poll_timeout => 5,
-delimiter )=> ' ',
);
@result = $snmp->walk( -format => 'ne'
-oids => '1.3.6.1.4.1.9.9.150.1.1.3.1.2'
-print => 'on');
print "$result\n";
exit;
=======================================================
Error:?????
#perl snmp-util.pl
Can't locate SNMP/Util.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.1/i586-linux-thread-multi /usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at
snmp-util.pl line 16.
BEGIN failed--compilation aborted at snmp-util.pl line 16.
=======================================================
Where does my error lie?
Frank
Patrick Wade schrieb:
>Use snmp_Util
>
>It has a built in walk function.
>
>Patrick
>
>Frank Paulsen wrote:
>
>
>
>>Hello NG,
>>
>>I would like with the CPAN module Net:SNMP many OID's of a Cisco router call up.
>>A Script around for one OID I found it on www.cpan.org
>>I would like gladly one SNMPWALK implement.
>>
>>snmpwalk -c public -m all 1.1.1.1 .1.3.6.1.4.1.9.9.150.1.1.3.1.2
>>
>>Who has an example script?
>>
>>Thanks for your assistance
>>
>>Frank
>>
>>_______________________________________________
>>cisco-nsp mailing list cisco-nsp at puck.nether.net
>>https://puck.nether.net/mailman/listinfo/cisco-nsp
>>archive at http://puck.nether.net/pipermail/cisco-nsp/
>>
>>
>>
>>
>>
>_______________________________________________
>cisco-nsp mailing list cisco-nsp at puck.nether.net
>https://puck.nether.net/mailman/listinfo/cisco-nsp
>archive at http://puck.nether.net/pipermail/cisco-nsp/
>
>
>
More information about the cisco-nsp
mailing list