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
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Protocol: Detecting when an SNMP table result is an empty array.

Solved1.16K views18th July 2024
7
Sam Stump [DevOps Advocate]616 5th January 2024 2 Comments

Within a protocol I want to detect when an SNMP table result is an empty array.

When this condition is discovered I will use QAction to update a standalone parameter to alert of the null data response from the array.

When the parameter is receiving data, I'll update the other parameter again

What's the best way to detect a returned empty snmp arrays in a protocol?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 31st May 2024

Hi Sam,
Have you been able to find a solution for this yet? If the answers below helped, could you select the most helpful answer, or if you found another solution altogether, could you let us know? If you still need help with this, could you answer the questions Laurens asks in the comment of January 19th?

Marieke Goethals [SLC] [DevOps Catalyst] commented 18th July 2024

As this question has now been open for a long time and there has been no further reaction from you, I will now close it. If you still want more information about this, could you post a new question?

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
7
Laurens Moutton [SLC] [DevOps Enabler]8.78K Posted 5th January 2024 2 Comments

Hi,

By executing a count on the number of rows in the table it is possible to know if a table is empty or not.

int rowCount = protocol.RowCount(tablePid);

if rowCount == 0 then the response is empty, else it will have data.

Do note that this will only work if the device is responding. If there is a timeout then the previous polled rows will remain in the table.

Regards,

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2024
Sam Stump [DevOps Advocate] commented 11th January 2024

Thanks for the reply.

Unfortunately a snmp table response of zero does not mean the table will be empty so this example doesn’t work.

See example https://samstump.com/dma/snmptableresponse.png

You are correct the table rows stay in the table when a timeout occurs – which is fine – but when the timeout is resolved if the snmp table response is empty then the previous rows are still in the table and counting the number of rows does not work to highlight the empty snmp table response.

Laurens Moutton [SLC] [DevOps Enabler] commented 19th January 2024

I have tried with an snmp simulation to poll a table with rows and then poll it again without the rows and in my case the rows are no longer present in the table on the element.
-Which DataMiner version is being used?
-Is it polling SNMPv1,v2, or v3?
-How does the table definition look like in the protocol.xml: is the table containing all columns of type “snmp” or does it also contain other column types like “retrieved” or “state”?
-How does the SNMP/OID tag look like for the table parameter? Is it having the options=”instance;multipleGetNext” or is it using a different method?

You are viewing 1 out of 3 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin