Menu

#2648 snmpget displaying for 1,000 as float

freeBSD
invalid
nobody
None
7
2015-07-06
2015-06-29
Insuk Ahn
No

Hello,

OS : Ubuntu 12.01 or windows 7
snmp version : net-snmp-5.6.1.1-1

the object information :

ScaleHV OBJECT-TYPE
SYNTAX      DisplayString
MAX-ACCESS  read-only
STATUS      current
DESCRIPTION

I created oid and put the matching xml value to 1,000 or set the value to 1,000.

snmpwalk -v2c -c private
snmpget(or snmpwalk) brings the following result : ScaleHV.1 = STRING: +0.000000000000E+002

I expects to +1.0E+003.

But in the program, it passed the correct value to 1,000.
So I guess that the issue is only displaying a value when it is 1,000.
Is anybody experience the similar issue?
I tested with 10,000 or 2,000 but it is working correctly.
I appreciate if you have any clue.
Thank you,

Insuk

Discussion

  • Bill Fenner

    Bill Fenner - 2015-06-30

    The problem appears to be in whatever system you have converting xml to SNMP objects. Note that this type is defined in the MIB as a DisplayString - which means that SNMP is not interpreting it in any way, whatever the MIB module implementation gives to net-snmp is what will be returned to the user.

     
    • Insuk Ahn

      Insuk Ahn - 2015-07-06

      Thank you so much. I would focus on that part(converting xml to SNMP objects).

       
  • Wes Hardaker

    Wes Hardaker - 2015-07-06
    • status: open --> invalid
     

Log in to post a comment.

MongoDB Logo MongoDB