Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floating point in SNMP

Status
Not open for further replies.

jeanvst

Programmer
Jun 23, 2009
4
BR
Hello,

I am developing an equipment that is monitored via SNMP.
There are some monitoring variables that must be floating points.
I've read somewhere that there is a REAL type in SNMP, but could not find it in any RFC. Does it really exists?

I tried using DisplayString and it works fine for user reading. But when I try to monitor this variable in SNMPc(software from Castlerock), the comparison of the string doesn't work the way I want.
Example: I want an alarm condition if the variable is higher than 3.7. String comparison doesn't work in this case.

Any suggestions?

Thanks in advance!
 
It is possible to change the units on the device and use an integer?

i.e. Change is from 3.7 secs to 3700 milliseconds?

Thereby removing the decimal point and the need for a float value?

Bill

 
you can convert the string to integer to float and compare.. floot is not supported in SNMP
 
Sorry people, I had already forgotten this thread.
The problem was already solved.

The solution suggested by bnorton916 was also my first idea, but it was depending on client approval. Our client accepted this solution 2 days after my first post and in the end I forgot about this post.

Thanks for the replies anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top