NetXMS Support Forum

English Support => General Support => Topic started by: cserzs on March 31, 2016, 11:27:49 AM

Title: 32 bit INT OID issue
Post by: cserzs on March 31, 2016, 11:27:49 AM
Hi,

I have installed the v2.0-RC2 NetXMS system and I tried to integrate an SNMP device what uses 32 bit INT OIDs. I carried out the compilation process of corresponding MIB  files successfully but in DCI configuration/ Select MIB Object window when I tried to run an SNMP Walk process I found that the 32 bit INT OID components are not displayed properly (with negative sign). Please see the attached screenshot of this MIB Walk Results Window.
Title: Re: 32 bit INT OID issue
Post by: tomaskir on March 31, 2016, 12:54:59 PM
1) Use 2.0.3, RC2 is quite old.
2) Use the Java Management console, not the legacy one.

Let us know if the problem persists after those changes.
Title: Re: 32 bit INT OID issue
Post by: cserzs on April 04, 2016, 05:36:19 PM
Hi,

Thank you for your feedback.
I have upgraded my NetXMS system to v2.0.3 but despite this the 32 bit INT OID issue still inadequate (remain the negative sign).
Title: Re: 32 bit INT OID issue
Post by: Victor Kirhenshtein on April 08, 2016, 09:04:39 AM
Hi,

it's actually a bug in libnxsnmp. I've fixed it in development branch. If you are building from source, you can fix it by changing file src/snmp/libnxsnmp/main.cpp line 34:

from:
      size_t numChars = _sntprintf(&buffer[bufPos], bufferSize - bufPos, _T(".%d"), value);

to:
      size_t numChars = _sntprintf(&buffer[bufPos], bufferSize - bufPos, _T(".%u"), value);

Best regards,
Victor
Title: Re: 32 bit INT OID issue
Post by: cserzs on April 08, 2016, 11:05:50 PM
Hello Victor,

Thank you very much for your support.
I will wait for the official fixed version.

BR, Zsolt