2009/9/2 Alexander Shikoff <[email protected]>:
> $ENV{'MIBDIRS'} = 
> '/usr/local/share/snmp/mibs:/data/noc/mrtg/MIBs/Juniper/9.5';
> $ENV{'MIBS'} = 'JUNIPER-SCU-MIB';

It would probably be sensible to insert a '+' before these two values,
as you did with the command-line arguments.


> my $sess = new SNMP::Session(DestHost => 'br1-gdr', Community => 'public', 
> Version => '2c' );
> print $sess->get('jnxScuStatsBytes.208.ipv4."from-World"'), "\n";
>
> But script returns error NOSUCHINSTANCE.
> Debugging shows that jnxScuStatsBytes.208.ipv4."from-World" is not
> converted to OID correctly:

What happens if you try replacing:

   a)  "ipv4" with the numeric enumeration value

   b)  "from-World" with the equivalent list of numeric OIDs
                (10.102.114.111.199.45.87.111.114.108.100)

   c)   both of the above

?

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to