Re: Net::SNMP - returning huge hex for opaque value

Discussion in 'Perl' started by dna, Oct 20, 2003.

  1. dna

    dna Guest

    anyone at all have any ideas on this??? anyone have any experience with
    this?

    is David M. Town still maintaining this package??

    thanks!

    "dna" <magmalianathotmaildotcom> wrote in message
    news:...
    >
    > 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
    >
    >
    >
     
    dna, Oct 20, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    10
    Views:
    6,223
    Neredbojias
    Aug 19, 2005
  2. Bengt Richter
    Replies:
    6
    Views:
    474
    Juha Autero
    Aug 19, 2003
  3. jack
    Replies:
    4
    Views:
    590
  4. tim

    hex string to hex value

    tim, Nov 22, 2005, in forum: Python
    Replies:
    8
    Views:
    18,885
  5. milaus

    SNMP module to query net-snmp

    milaus, Aug 31, 2006, in forum: Perl Misc
    Replies:
    3
    Views:
    426
    Dr.Ruud
    Aug 31, 2006
Loading...

Share This Page