hi all, i have a problem to convert a floating point number that is represented as an IEEE 32 bit number to decimal number
[root@ferb ~]# snmpwalk -v1 -c comunity x.x.x.x .1.3.6.1.4.1.1166.6.1.2.4.2.1.41
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.1 = Counter32: 1085738763
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.2 = Counter32: 1085625396
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.3 = Counter32: 1085786842
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.4 = Counter32: 1085554766
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.5 = Counter32: 1085742505
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.6 = Counter32: 1085540258
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.7 = Counter32: 1085581927
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.8 = Counter32: 1085738763
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.9 = Counter32: 1085670199
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.10 = Counter32: 1085664416
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.11 = Counter32: 1085826850
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.12 = Counter32: 1086131806
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.13 = Counter32: 1085830547
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.14 = Counter32: 1085699591
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.15 = Counter32: 1085779331
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.16 = Counter32: 1085313869
but i like this result, the line is
SNMPv2-SMI::enterprises.1166.6.1.2.4.2.1.41.1 = Counter32: 1085738763
please sorry for my english
problem convert value floating point number 32 bit
Moderators: Developers, Moderators
Re: problem convert value floating point number 32 bit
i have the math to convert the number, but i dont know how is the math to cdef.
first need convert to dec to hex and next convert the hex to float number 32 bit, its possible with cacti make this?
sorry for my english
first need convert to dec to hex and next convert the hex to float number 32 bit, its possible with cacti make this?
sorry for my english
Re: problem convert value floating point number 32 bit
I would convert to a script data input method.
Before history, there was a paradise, now dust.
Who is online
Users browsing this forum: No registered users and 1 guest