Hi there,
I experience a problem when attempting to use an enterprise mib with SNMP.pm without the MIB file.
When I issue a getnext like so: my $varlist = new SNMP::VarList(['.1.3.6.1.4.1.20000.45']); $sess->getnext($varlist);
The $varlist has the OID modified to 'enterprises.20000.46'. A
subsequent $sess->getnext($varlist) (i.e. as used in 'walk') returns
this error in $sess->{ErrorStr}:Unknown Object Identifier (Sub-id not found: (top) -> enterprises)
A workaround is to specify UseNumeric => 1 in new SNMP::Session(), but should this really be necessary? If the tool translates my numerical OID to enterprises.* shouldn't it be able to take its own modification as input too?
FAQ: "Do I actually need the MIB files?" says I don't need the MIB file...
There is a complete client + agent example code + output here: http://demo.capmon.dk/~pvm/netsnmpEnterpriseMissing/
If I don't hear anything, I'll file a bug. OK?
Sincerely,
Peter M�rch -- Peter Valdemar M�rch http://www.morch.com
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ 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
