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

Determining success of SNMP set action in a driver

Solved648 views27th January 2025SNMP
5
Andrea Ivkovic [SLC] [DevOps Advocate]232 25th September 2024 1 Comment

Hi Dojo community,

I am developing an SNMP driver that requires certain commands to be executed after each set action. However, the SNMP set action is not always successful, and sometimes retries are needed.

Is there any way to determine when and if the set action was successful in the driver, similar to what can be seen in the stream viewer?

Andrea Ivkovic [SLC] [DevOps Advocate] Selected answer as best 27th January 2025
Chirangee lal Verma [DevOps Advocate] commented 25th September 2024

Could you please explain it more

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 25th September 2024 3 Comments

Hi,

When a set fails, the same number of retries are automatically done similar like a get.

I did not test it myself, but it should be possible to add a trigger <On id="pid">parameter</On><Time>timeout</Time> to trigger at each retry, or <Time>timeout after retries</Time> to only trigger once after all retries failed. With id="pid" the pid has to be replaced with the parameter id of the write parameter.

Regards,

Andrea Ivkovic [SLC] [DevOps Advocate] Posted new comment 26th September 2024
Andrea Ivkovic [SLC] [DevOps Advocate] commented 25th September 2024

Hi Laurens,
Thank you for your answer! I understand that the trigger will only activate if the set is unsuccessful. However, since the set can sometimes succeed, I need to execute an additional action only after a successful retry. If all retries fail, I don’t need to take any further action.

Laurens Moutton [SLC] [DevOps Enabler] commented 26th September 2024

By default there is no trigger when the set succeeded. With a workaround it might be possible to still trigger on it and that is when the set happens through options=”snmpSet” on the write parameter and there is a corresponding read parameter (same parameter name with snmp enabled). When the set succeeds, the write value will be copied into the read parameter and when adding a trigger on the read parameter that one will go off when a new value enters. Note that a clear action on the read will have to added after the trigger went of if you want to trigger on every set that succeeded even if the value remained the same, else with the same value the trigger won’t go off anymore.

Andrea Ivkovic [SLC] [DevOps Advocate] commented 26th September 2024

Unfortunately, we cannot trigger on the read parameter. The specific use case here is that the SNMP set action is used to update the value on the web UI of the device, while the SNMP get action retrieves values directly from the device itself. This is why we need to perform the SNMP set action first, send a command to save the data, and then follow it up with the SNMP get.

You are viewing 1 out of 2 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