|
hi,
i'd like to translate between object-values and oids.
so instead of writing:
$oid= ".1.3.6.1.2.1.1.1.0";
($session, $error) = Net::SNMP->session(
-hostname => 'localhost',
-community => 'public',
);
$result = $session->get_request( -varbindlist => [$oid] );
i would like to write:
$obj = "sysDescr.0";
$oid = snmp_translate($obj);
[... the rest is the same ...]
where "snmp_translate" is a function which i'm hoping exists ... but which may not
i played a bit with snmp_type_ntop ... but i don't think it does what i want it to do.
of course, in order to translate object values into oids, i would need to specify where my MIB modules are ... and load them and compile them ...
does Net-SNMP support this functionality? or am i responsible for performing my own translation before issuing a get_request?
--sk
stuart kendrick
fhcrc |