problem convert value floating point number 32 bit

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
merlock
Posts: 2
Joined: Thu Aug 03, 2017 11:08 am

problem convert value floating point number 32 bit

Post by merlock »

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
Captura.PNG
Captura.PNG (67.82 KiB) Viewed 440 times
please sorry for my english
merlock
Posts: 2
Joined: Thu Aug 03, 2017 11:08 am

Re: problem convert value floating point number 32 bit

Post by merlock »

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?
Captura.PNG
Captura.PNG (21.27 KiB) Viewed 406 times
sorry for my english
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: problem convert value floating point number 32 bit

Post by Osiris »

I would convert to a script data input method.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest