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

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