Incorrect types

Marc Franquesa <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Lady 3Jane
Message-ID <1253445258.26286.3.camel@nexus>
(I hope that this is the correct list to ask for support about this
question).

I'm developing a perl subagent, and initially I get this error on the
perl subagent:

Non-integer value passed to setValue with ASN_INTEGER: type was 6

Then I use "pack('I',$value)" to return the OIDs values and the problem
gets solved. (at least for all Counter32 and Gauge values)

But now, I've noticed that the OIDs that were defined as Integer32 on
the MIB, always return '0' despite the real value stored on the
variable.

My question is ¿How I convert a normal scalar perl value to a value
suitable for ASN_INTEGER?

Thanks




------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.