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

Is it possible to find the element using IP address with engine.FindElements()

Solved1.03K views11th July 2023ipaddress
1
Trong Huynh [DevOps Member]744 21st November 2022 0 Comments

Hi,

I need to retrieve the element in my Automation Script. I have its IP address. There are a number of documented methods for finding elements using name, id, view etc, but is there a way to find the element using its IP address?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 11th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Jens Vandewalle [SLC] [DevOps Enabler]9.44K Posted 22nd November 2022 2 Comments

Hi Trong,

You can do this by using DMS_GET_ELEMENT_ID_FROM_IP (76).

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 11th July 2023
Trong Huynh [DevOps Member] commented 28th November 2022

Thanks Jen. This works well.

However, for me it works inside a protocol QAction. When using it inside an Automation Script I get “namespace name ‘DMS’ could not be found” error in the Logs. Not sure why.

Jens Vandewalle [SLC] [DevOps Enabler] commented 29th November 2022

Hi Trong, have you tried by adding using Interop.SLDms;?

-2
Miguel Obregon [SLC] [DevOps Catalyst]19.12K Posted 21st November 2022 1 Comment

Hi Trong,

I believe there is not a specific method that you could use to get an element based on the IP address. However, you could proceed as follows:

// Get all the elements in the cluster (Root view = -1)
Element[] lElements = engine.FindElementsInView(-1);

// Get Element based on polling IP
Element myElement = lElements.Where(element => element.PollingIP == “10.11.12.13”).First();

if (myElement != null)
{
engine.GenerateInformation(“Element name=” + myElement.ElementName);
}

Trong Huynh [DevOps Member] Posted new comment 28th November 2022
Trong Huynh [DevOps Member] commented 28th November 2022

Thanks Miguel. This solution works also.

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