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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Does IDms.GetAgent(id).GetElements() also include migrated elements

Solved154 views3 days ago
2
Tom Waterbley [SLC] [DevOps Catalyst]9.52K 3 days ago 0 Comments

We are trying to retrieve all elements hosted on the same DMA as the one where our script is running.

Currently, we use the following approach with the core DMS class library:

dms.GetElements().Where(e => e.Host == thisAgent);

We are considering replacing this with:

dms.GetAgent(thisDma).GetElements();

Internally, this method sends the following SLNet message:

GetInfoMessage message = new GetInfoMessage
{
Type = InfoType.ElementInfo,
DataMinerID = this.Id,
};

Question:

Does GetAgent(id).GetElements() also return elements that were originally created on a different DMA but later migrated to the current DMA? Or does it only return elements whose originating DMA matches?

Tom Waterbley [SLC] [DevOps Catalyst] Selected answer as best 3 days ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
6
Wouter Demuynck [SLC] [DevOps Advocate]6.48K Posted 3 days ago 0 Comments

Hi Tom,

GetInfoMessage(InfoType.Elements) will always return all elements, regardless of what the DataMinerID property says. The DataMinerID property is being used to route the request to a specific agent in the cluster.

You’re looking for GetInfoMessage(InfoType.LocalElementInfo), which will return the elements hosted on the agent the request was sent to (possibly rerouted via the DataMinerID property). The result will include all elements currently hosted on that DMA, including elements that were swarmed/migrated over there or were imported there.

Tom Waterbley [SLC] [DevOps Catalyst] Selected answer as best 3 days ago
3
Robbe De Ghein [SLC] [DevOps Advocate]1.28K Posted 3 days ago 0 Comments

Hi Tom,

Not familiar with the core DMS class library implementation but the raw GetInfoMessage for ElementInfo will always return all elements in the DMS, regardless of who hosts what.

DataMinerId here will only be used for routing, it refers to which agent will answer the request.

Robbe De Ghein [SLC] [DevOps Advocate] Answered question 3 days ago
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