Net::SNMP - returning huge hex for opaque value

From: dna (magmalianathotmaildotcom)
Date: 10/17/03


Date: Fri, 17 Oct 2003 09:37:57 -0400


Hello everyone,

hopefully i'm not visiting an old issue that's already known, but i'm having
an issue with the Net::SNMP module.

I have written a script to return the values for the OID:
.1.3.6.1.4.1.2021.10.1.6.1 which is a load average for a Solaris box.

Querying this OID through the command line, snmpget, it will return the
following:

UCD-SNMP-MIB::laLoadFloat.1 = Opaque: Float: 1.371094

and then when querying through my script's usage of the net::snmp, it
returns:

DATA: 0x9f78043fdc8000

which appears to me as a HUGE hex value.

i MIGHT have traced how this return value is built down to the package:
Net::SNMP::Message

with the method: [ sub _prepare_opaque ] which calls [ sub
_prepare_type_length ] in the same module.

will these methods prepare the message properly given the type of output
i've seen from the command line? i'm thinking that maybe there is a small
bug in how it's parsing the returned value, or maybe i'm completely out in
left field ;)

this would be a handy metric to have, so TIA for any help
Dan



Relevant Pages

  • Re: Dump ldap into tnsnames.ora ? (automatically)
    ... > We are using ldap naming (oracle internet directory for name ... OID has a names server proxy. ... command running against OID. ...
    (comp.databases.oracle.server)
  • Re: Secure Channel Password
    ... Is this command going to have any adverse effect on either the DC, ... machine which I am querying about its password reset? ... querying is Exchange Server 2000. ... > Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.win2000.active_directory)
  • Re: How to Monitor LINUX Machine from Windows Command line?
    ... Windows Users, I searched a lot that what command I should to use with some ... OID to monitor my Linux through SNMP MIBs.i searched a lot but I find most of ... result for which that OID is for, so kindly please help me by telling me ...
    (microsoft.public.windows.mediacenter)
  • Re: saving RECNO() at result-sets through sql
    ... Using RECNOin an SQL SELECT command is only reliable if you are only querying a single table. ... If you join multiple tables it's unlikely you'll get any meaningful results. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: trunk port
    ... In most of my cases i have obtained the answer querying the OID ... CISCO-VTP-MIB. ... > Currently I'm sending OID for the port VLAN and I'm getting 0 ...
    (comp.protocols.snmp)