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

Get element on a DMS system with IP in a connector

Solved586 views11th March 2024Connector DMSClass GetElementByIp
3
Robbie Demaegdt [SLC] [DevOps Advocate]655 8th March 2024 0 Comments

Is there a way to get an element in a DMS system based on the IP?

Something like GetElementByName but ByIp.

There is a way to get elements with the DMSClass call and check for the IP address in the element objects.

But the DMSClass is now obsolete so I’m searching for another way to do this.

Robbie Demaegdt [SLC] [DevOps Advocate] Selected answer as best 11th March 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 8th March 2024 1 Comment

Hi Robbie, the DMS library unfortunately doesn’t expose the polling IP in an easy way. The connections first need to be downcasted to the correct type before the IP address can be accessed:

var elementsHttp = dms.GetElements().Where(x => x.Connections.OfType<IHttpConnection>().Any(y => y.TcpConfiguration.RemoteHost == “x”));

There is also the ‘GetElementByIpMessage’ SLNet message that can probably be used for what you want to do.

Robbie Demaegdt [SLC] [DevOps Advocate] Selected answer as best 11th March 2024
Robbie Demaegdt [SLC] [DevOps Advocate] commented 11th March 2024

The GetElementByIpMessage isn’t working neither on the SLNetClientTestTool.

I was able to find elements with the IHTTPConnection, ISnmpConnection.
Finding elements with serial based (TCP/IP, UDP/IP and Serial) aren’t supported yet from time of writing this (latest release version 1.0.1.5 and 1.1.1.5 or the Skyline.DataMiner.Core.DataMinerSystem.Common package)

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