> HI > > I tried many years ago to add floating point as a base type to > the SNMP protocol. However, this was not successful. > > If you really need a floating point type, then best choice > is to use a displayable string representation (which > uses OCTET STRING for the base type). I would suggest that > you define a textual convention that describes the values > for the pointing float including plus and negative infinity, > and "not a number".
Just to add to this, there are a number of "standard" OIDs that do use this method to represent floating point numbers; there is are load average objects in the host MIB that comes to mind (there are also other values that store an integer which contains the load average times 100, as per one of the other suggestions given here). Many management applications can natively handle these string objects as numbers. I know Cacti does, for example. In your case with temperatures, either of these methods could work. FYI, ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
