Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Re: Net::SNMP - returning huge hex for opaque value

Thread Tools

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

Posts: n/a

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

is David M. Town Removed) still maintaining this package??


"dna" <magmalianathotmaildotcom> wrote in message
news:(E-Mail Removed)...
> Hello everyone,
> hopefully i'm not visiting an old issue that's already known, but i'm

> an issue with the Net::SNMP module.
> I have written a script to return the values for the OID:
> . 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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hex string to hex value tim Python 8 11-23-2005 06:27 PM
[Fwd: Re: hex string to hex value] tim Python 2 11-23-2005 07:18 AM
Hex Color Codes - Hex 6 <=> Hex 3 HTML 10 08-18-2005 11:21 PM
hex value in string back to real hex value jack Python 4 09-08-2004 07:11 AM
hex(-5) => Futurewarning: ugh, can't we have a better hex than '-'[:n<0]+hex(abs(n)) ?? Bengt Richter Python 6 08-19-2003 07:33 AM