opensubscriber
   Find in this group all groups
 
Unknown more information…

n : net-snmp-users@lists.sourceforge.net 20 September 2009 • 7:14PM -0400

Incorrect types
by Marc Franquesa

REPLY TO AUTHOR
 
REPLY TO GROUP






(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® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@list...
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.