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
    • Kanban workshop
    • 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
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Set value to column write parameter from automation script

Solved114 views1 day agoAutomation script Write Paramter
2
Dario Sarkanovic [SLC] [DevOps Advocate]886 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 1 day ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Warnez [SLC] [DevOps Advocate]741 Posted 6 days ago 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 1 day ago
Dario Sarkanovic [SLC] [DevOps Advocate] commented 5 days ago

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 1 day ago

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