On 30/05/07, Vishal N <[EMAIL PROTECTED]> wrote: > How to send float values from agent?
See 'agent/mibgroup/ucd-snmp/loadave.c' for an example (Search for LOADAVEFLOAT) > I have tried but > it is giving error message > "SMPS-MIB::loadFRFC9.0 = Wrong Type (should be > Opaque): INTEGER: 1110585115" How have you implemented this object? What does the code look like? > What is Opaque? SNMP doesn't actually support Floating point objects. The Net-SNMP suite includes a pseudo-standard extension mechanism for this, by wrapping the float value within an OPAQUE wrapper. The library should handle this automatically, as long as you register the MIB object as ASN_OPAQUE_FLOAT. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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
