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

Edit element IP from Automation

Solved847 views26th January 2024
3
Pedro Sánchez [DevOps Advocate]239 24th January 2024 0 Comments

Hi Dojo!

One of ous customer asked about be able to change the polling IP address of some elements when necessary so we want to know if it is possible via an automation script.

We already check the possibility to add a second interface in the driver but it will be more complex as it is an smart-serial single (IEC 104).

Thank you in advance!

Pedro

Pedro Sánchez [DevOps Advocate] Selected answer as best 26th January 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Robin Spruytte [SLC] [DevOps Advocate]647 Posted 25th January 2024 1 Comment

As far as I know, you can change the polling IP of a device via the IDmsElement object as well.

You can access the connection via IDmsElement.Connections. Once you have the correct connection, you should cast it to the correct connection class type, which then makes it easy to edit whatever part of the connection you’d like. At the end, call the .Update() method on the IDmsElement object and the updates will be applied on the element.

Pedro Sánchez [DevOps Advocate] Posted new comment 26th January 2024
Pedro Sánchez [DevOps Advocate] commented 26th January 2024

Thank you Robin, I will try with IDmsElement aswell.
Kind regards!

4
João Severino [SLC] [DevOps Catalyst]13.02K Posted 24th January 2024 3 Comments

Hi Pedro,

Can you check my answer to this other question Change Polling IP from a Automation? – DataMiner Dojo

It is similar to what you are after and in there, I briefly explain a couple of options and the IDP one could be automated to be run via script

Pedro Sánchez [DevOps Advocate] Posted new comment 26th January 2024
Pedro Sánchez [DevOps Advocate] commented 24th January 2024

Thank you João!
We know that SLNET calls are not recomended but as a temporal solution while IDP is installed and tested we need a quick solution for this requirement asap. Do you have a reference guide for SLNET calls or an example for this call in particular? thanks again!

João Severino [SLC] [DevOps Catalyst] commented 24th January 2024

The SLNet call that allows this is the AddElementMessage which besides creation also allows editing.
You can edit an element by assigning the correct value to the DataMinerID and ElementID properties and then configuring the Ports property.
VERY IMPORTANT NOTE: For any and all fields that you do not wish to modify, you must not assign any value to them not even null or default values.
A snippet you can use as base for your script is below but I must reiterate that these calls must be done with caution.
new SLNetMessages.AddElementMessage
{
DataMinerID = dmaId,
ElementID = elementId,
Ports= new SLNetMessages.ElementPortInfo[]
{
// Main Port
new SLNetMessages.ElementPortInfo
{
PollingIPAddress = “127.0.0.1”
},
// Second Port
null,
// Third Port
new SLNetMessages.ElementPortInfo
{
PollingIPAddress = “127.0.0.2”
},
}
}

Notice the only exception to my note above is when dealing with the ports.
If you wish to modify a port but leave a previous one untouched you must pass a null value in that array position instead of an empty object.

Disclaimer
Note that this is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future as these are subject to change without notice. We recommend always using the correct UI or automation options provided in DataMiner Automation or through our web API.

Pedro Sánchez [DevOps Advocate] commented 26th January 2024

Thanks João! I will try this!

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