Is there a standard way to represent a float as an attribute in a mib ?
The problem I see with an OCTET STRING or DisplayString is that in ascii text 1.5 < 1.50 hence any comparisons may be mistaken. The only other way around it that I see is to make every float item actually 2 items as such: float_val intenger float_exp integer where 1.5 would be written as 15x10^-1 and float_val = 15 float_exp= -1 However this seems extremely combersome. There has got to be a better way. Randy Sharpe Not in the spec or in the V2/V3 spec. No way to create floats that are universally understood as floats. RFC1902 takes away the old opaque declaration that possibly could have been used. We are looking forward to Counter32, Counter64 and Integer32 to carry numbers.
Related Questions
- Where can I find the standard MIB for SNMP management of the Java virtual machine? What version of SNMP protocol does it require?
- Is there a standard way to read in int, long, float, and double values from a string representation?
- Is there a standard way to represent a float as an attribute in a mib ?