Re: How to send float values from agent
Vishal N <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I have generated code by mib2c using mib2c.scalar.conf and used the float variable to pass the object value. I have read in net-snmp guids that Opaque is not used now days. Will it be any problem if I used OCTET STRING for float values. Vishal N Dave Shield <[email protected]> wrote: On 30/05/07, Vishal N 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 --------------------------------- Looking for people who are YOUR TYPE? Find them here! ------------------------------------------------------------------------- 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