[mrtg] Re: Help with ucd-snmp-4.2.3 Suite --PLEASE--

Martin Rheumer martinr at hotkey.net.au
Wed Jul 3 01:34:23 MEST 2002


I had to add lines to where the MIB Files were located
when using the SNMP Perl modules.
Perhaps its something like that

$ENV{'MIBDIRS'} = '/usr/local/share/snmp/mibs';

In your shell that the line calles
>    open(SNMP, "c:/ucd-snmp/usr/bin/snmpwalk -Oq -v 1 $Router $Community

You might need to make sure the Environment variables are
set to find the MIBS.

My 2 cents.

Martin




At 10:42 AM 7/2/02 -0400, GUARENO at FORDHAM.EDU wrote:
>
>Hi all:
>I am using a script wich uses snmpwalk  like this
>sub snmpwalk{
>    (my $Router, my $Community, my $OID ) = @_ or return ();
>    open(SNMP, "c:/ucd-snmp/usr/bin/snmpwalk -Oq -v 1 $Router $Community
>$OID |");
>    my @snmp_table = <SNMP>;
>    close SNMP;
>    return @snmp_table;
>}
>
>(I know I said this too many times) This is part of the overall code where
>snmpwalk is called several times.   I'm trying to get user info from an
>Asccend MAX 6000 using a script called cat_internet.pl.
>I get the following errors:
>
>Cannot find module (IP-MIB): At line 0 in (none)
-cut -

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list