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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Set value to column write parameter from automation script

Solved167 views9th June 2025Automation script Write Paramter
2
Dario Sarkanovic [SLC] [DevOps Advocate]911 3rd June 2025 0 Comments

Hi Dojo,

I will need to set value to column write parameter from automation script. In my case I have read/write column parameters and write parameter use snmpSetAndGet.

<Param id="504" trending="true"> --> Read column parameter
<Param id="505" snmpSetAndGet="row;executeNext"> --> Write column parameter

I will need to set 505 parameter from automation script but I didn't found any method that can do set on write parameter. Is there any solution for this case without creating more logic on protocol side which will do snmp set via QAction?

Dario Sarkanovic [SLC] [DevOps Advocate] Selected answer as best 9th June 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Warnez [SLC] [DevOps Advocate]746 Posted 5th June 2025 2 Comments

Hi Dario,

if I understand your situation correctly, you want to set one cell via the write parameter in an automation script?

if so, did you already checked the possibility via the following:

Element el = engine.FindElement( dmaId, elementId);

const int ReadParam = 504

const int WriteParam = 505;

el.SetParameterByPrimaryKey(el.GetWriteParameterIDFromRead(ReadParam, pk, value )

or

el.SetParameterByPrimaryKey(WriteParam, pk, value);

I would recommend to only use this solution if it is a single update, if you want to update multiple parameters or cells a better way to go is either via Interapp solution or via a single param that can contain for example a json with the values. That way the communication between automation script and the protocol is done with the absolute minimum interaction.

Dario Sarkanovic [SLC] [DevOps Advocate] Posted new comment 9th June 2025
Dario Sarkanovic [SLC] [DevOps Advocate] commented 5th June 2025

Hi Thomas, you understood correct.
Element class contains only GetWriteParameterIDFromRead() method that takes one parameter (parameter id or parameter name) and it is related to standalone parameters.

I think it's even not possible to trigger write column parameter from QAction. So, if we need to trigger SNMP Set on column write parameter externally, only way to do it is via SNMP Set from QAction itself

Dario Sarkanovic [SLC] [DevOps Advocate] commented 9th June 2025

I tested this approach and it's possible to set write column parameter (and also trigger SNMP set on colum write parameter) from script.

element.SetParameterByPrimaryKey(element.GetWriteParameterIDFromRead(readColumnPid), pk, valueToSet);

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