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

How to get the configured IP for a Serial connection via iDMS?

Solved1.15K views24th November 2021class library DMSClass protocol QActions
2
Thijs Vanovenacker [SLC] [DevOps Advocate]2.21K 22nd November 2021 0 Comments

Hi,
I'm trying to list up all the elements per interface category with their configured element IP Addresses.

I'm able to fetch the IP addresses for SNMP & HTTP connections.
As we know virtual connections don't have any of those, I also skipped these records successfully already.

Though I don't seem to get to the Serial connection details so far...
Below is a snippet of code of what I'm trying to reach:

IDms myDms = protocol.GetDms();
var elements = myDms.GetElements();
foreach (var element in elements)
{
	foreach (var connection in element.Connections)
	{
// ...
var serialConnection = connection as ISerialConnection;
if (serialConnection != null)
{
	var portConnection = (IIpBased)serialConnection.Connection;
	if (portConnection != null)
	{
		var ip = portConnection.RemoteHost;
		continue;
	}
 }
}

Can someone help me with a clue?
Thanks!

Thijs Vanovenacker [SLC] [DevOps Advocate] Selected answer as best 24th November 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Pedro Debevere [SLC] [DevOps Enabler]1.80K Posted 22nd November 2021 2 Comments

Hi Thijs,

serial (and smart-serial) are currently not yet supported. We have the following tasks to implement this:

  • CLP - iDms Include Serial PortInfo
  • CLP - IDms Include Smart Serial PortInfo
Thijs Vanovenacker [SLC] [DevOps Advocate] Selected answer as best 24th November 2021
Thijs Vanovenacker [SLC] [DevOps Advocate] commented 23rd November 2021

So what would be the best alternative for now?
Considering that I’m just interested in finding all configured IP addresses per element. (So I need the DMA/Element ID, Name and IPs) thanks.

Pedro Debevere [SLC] [DevOps Enabler] commented 23rd November 2021

You could use a GetElementByIDMessage (or GetElementByNameMessage) SLNet request which results in a ElementInfoEventMessage.
The name, element and Agent ID can be found in the Name, ElementID and DataMinerID properties, respectively.
The MainPort property of this response contains the info of the main port and is of type ElementPortInfo. Information about additional ports is found under the ExtraPorts property (of type ElementPortInfo[]).
The PollingIPAddress property of the ElementPortInfo object denotes the polling IP.

Note: 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 a rule, you should avoid using SLNet calls, as these are subject to change without notice.

You are viewing 1 out of 1 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