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

Automation: How can we know a given element is really up and running in Dataminer?

Solved931 views15th December 2023automation scipt DMS
6
Paulo Henriques [SLC] [DevOps Member]550 13th December 2023 0 Comments

Hi,

I’m writing an automation where I need to start a given set of elements that are stopped.

The script needs to wait until all the elements are effectively up and running and not just we triggered their start.

On a first approach, I’m testing the IsActive property but I believe it gets ‘true’ as soon as we call Start(), thus the method below does not really do what we want.

Do you have any ideas on how to achieve this from my automation script?

ps: the logic for the stopping case will also be requierd, i.e., to wait for all the elements that I called Stop(), are really stopped.

private bool IsAllStarted(Element[] elems)
{
foreach (Element el in elems)
{
if (!engine.FindElement(el.DmaId, el.ElementId).IsActive)
return false;
}

return true;
}

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 15th December 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
8
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 13th December 2023 1 Comment

Hi Paulo,

Although the approach of Matthias might work, it uses an SLNET call so we should be cautious when using these. Another option that might be worth mentioning is using the following method Method IsStartupComplete | DataMiner Docs, part of the Skyline.DataMiner.Core.DataMinerSystem namespace (available through a NuGet package).

Kind Regards,

Jarno

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 15th December 2023
Guilherme Gaspar [SLC] [DevOps Advocate] commented 13th December 2023

To complement Jarno’s answer, which I believe it’s the correct approach; IsStartupComplete method is a wrapper for a specific call and you can find additional information about it here: https://docs.dataminer.services/develop/api/NotifyTypes/NT_ELEMENT_STARTUP_COMPLETE.html

3
Matthias Declerck [SLC] [DevOps Advocate]2.75K Posted 13th December 2023 1 Comment

Hi Paulo,

I believe there is a way to verify if an element is startup is done completely.

1. Subscribe on the ElementStateEventMessage for each element.
This can be done by creating a subscription with filter ‘SubscriptionFilterElement’ (for each element).
2. The event message contains 2 properties that you need, the State property and IsElementStartupComplete property.
3. If State is ‘Active’ + the IsElementStartupComplete property is true, then the correspondent element is ready.

Hope this helps you further

Paulo Henriques [SLC] [DevOps Member] Posted new comment 13th December 2023
Paulo Henriques [SLC] [DevOps Member] commented 13th December 2023

Thanks Matthias, this is a good idea testing the IsElementStartupComplete property, which as Jarno noted, is available through the method IDmsElement.IsStartupComplete()

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