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

SetParameterIndexByKey doesnt trigger @snmpSetAndGet

Solved336 views23rd January 2025
0
Joshua Wong [SLC] [DevOps Enabler]431 20th August 2024 0 Comments

Hi Dojo,

I’m working on a connector and it currently executes a protocol.SetParameterIndexByKey() to a cell in a table. The table successfully updates and the cell is updated, but the cell I am writing to belongs to a read/write column with @snmpsetandget but no SNMP set/get is done. Directly writing to the cell via clicking the togglebutton for it does indeed cause the SNMP set and get actions to be executed. Both actions individually work but I expect to trigger the SNMPSetAndGet with SetParameterIndexByKey(). Perhaps I am going about it wrong.

Do SetParameter methods trigger SNMPSetandGet if the read parameter is being set? Or if it doesn’t, is there a better way to go about causing a set and get to happen from QAction?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 23rd January 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Robin Spruytte [SLC] [DevOps Advocate]647 Posted 20th August 2024 1 Comment

Hi Joshua,

The logic from ‘snmpSetAndGet’ will only be triggered by using the ‘write’ parameter from the table. If you set the value from the QAction, I’m assuming you are writing to the ‘read’ parameter instead. As a result this will not trigger the SNMP set.

If you need to trigger the logic from the QAction it might be good to make use of a normal write param with ‘options=”snmpSet” ‘ and combining it with a parameter that holds the instance. You can find an example here. This way you should be able to set the instance and then the value on this write parameter instead. This should then execute the set.

NOTE: Even though the value will immediately be set in the table, this will not automatically do a get after the set, so you would need to trigger a way to repoll the value afterwards if you want to be sure the value is applied on the actual device

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 23rd January 2025
Joshua Wong [SLC] [DevOps Enabler] commented 20th August 2024

Hi Robin,

Thank you for the response, I will follow that example and do a new separate parameter for snmpset and also for instance along with the get.

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