Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Counter64 SNMP parameter displaying negative number

417 views27th January 2025counter64 overflow SNMP
1
Julian Yepe [SLC] [DevOps Advocate]227 23rd January 2025 0 Comments

Hello, I am encountering an issue where the display of SNMP number parameter is negative even though the value coming from the device is positive. After some investigation I believe it is because the value coming from the device exceeds the max value of Int32 and when Dataminer tries to cast that number as an Int32, it wraps around and becomes negative due to the way binary representation works. The type in the SNMP tag is indeed counter64, which should take any number from 0 to 2^64-1, which also troubling that it still seems to treat the value as an Int32. Is there any possible solution to this? There is the possibility of having a custom column for each of the columns that can possibly take an Int64 number, do the conversion in a Qaction, and set/display the custom column. This would not be an ideal solution, as I would have to create x number of columns for x number of tables where this can possibly happen, and would only do this as a last resort.

Side note: I ran a simulation on my local DMA and the table was not able to poll when the value coming was Int64

Values seen by the customer:
Incoming value from device: 3,777,560,910

Value displayed on Dataminer: -299,812,032

Laurens Moutton [SLC] [DevOps Enabler] Answered question 27th January 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 27th January 2025 1 Comment

Hi,

Thank you for providing the WireShark capture.

It can be seen in the capture that the device replies with the type being indicated as an Integer32 (0x02):

Trying a set with a Counter64 shows that the type should be 0x46 (=ASN_APPLICATION (0x40) | 6 to define ASN_APP_COUNTER64 according to asn1.h)

This basically comes down to a device issue that is replying with the wrong type.
Ideally there would be a firmware fix for this.

However there is a workaround possible in DataMiner by making a small adaptation to the parameter in the protocol.xml and change the Interprete RawType from “numeric text” into “unsigned number”. It should be possible to display the value again as the correct positive number.

Note that the mentioned expected value and displayed value in the question does not seem to be correct. 3,777,560,910 is in hex 0xE1 29 01 4E, or in bit representation:
1110 0001 0010 1001 0000 0001 0100 1110
Getting the two’s complement of that (to know the negative number representation) is:
0001 1110 1101 0110 1111 1110 1011 0010, which is 0x1E D6 FE B2 or -517,406,386.
The value -299,812,032 represents 3,995,155,264.

Regards,

Laurens Moutton [SLC] [DevOps Enabler] Posted new comment 27th January 2025
Laurens Moutton [SLC] [DevOps Enabler] commented 27th January 2025

Small remark: by changing the RawType into unsigned number, the value will be displayed as a positive number, but when looking at the StreamViewer it will still be shown there as a negative number there as that is the incoming value. This could be confusing for the end-user, so best to document this somewhere.

0
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 24th January 2025 0 Comments

Hi,

Would it be possible to send me the Wireshark capture of this data?

The only large type that the device simulator knows is a “Counter64”. When I test a simulation value with this type and the parameter that was shown here, then I can see the correct number being displayed (on DataMiner version 10.5.2). A Wireshark capture could show some better insights on how the structure of the incoming value looks like.

Regards,

Laurens Moutton [SLC] [DevOps Enabler] Answered question 24th January 2025
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs