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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Restarting an Enhanced Service

355 views22nd December 2024element restart enhanced services state
4
Dave Keller [DevOps Enabler]1.60K 20th December 2024 0 Comments

Hi Dojo,

On our DMS we have lots of Enhanced Services, but there isn't an option to change the state of the Enhanced Service from the Hamburger Menu (Activate/Pause/Stop/Restart)

What is an easy way to restart these Enhanced Services?

Thanks

Thijs Vanovenacker [SLC] [DevOps Advocate] Answered question 22nd December 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Thijs Vanovenacker [SLC] [DevOps Advocate]2.08K Posted 22nd December 2024 3 Comments

Hi Dave,

First of all, my question to you would be: why do you want to force restart an enhanced service element? Is there no other way to 'reload' items by triggering a flow on this service element instead rather then restarting?  (feel free to comment).

I know you are an experienced man, so if you have a valid reason to restart or control the state of the enhanced service element,  follow along with my suggestion here to use the automation-script module.  In the end an enhanced service has a "hidden element" attached on the back. So via code you can get hold of the element and perform your required action.

Disclaimer: Please be careful with what you do to avoid bring your service in a stuck state. if you have doubts, please reach out to Skyline first advise on architecture & approach.

Recently we also faced a situation where we wanted to give a restart to an enhanced service element.
We created following Automation script code for it:

text based for easier copying:

string serviceName = "ThisIsMyEnhancedServiceName";
IDms dms = engine.GetDms();

IDma agent = dms.GetAgents().FirstOrDefault();

var element = agent.GetElement(serviceName);
element.Restart();

Following NuGet and usings are required:

NuGet: Skyline.DataMiner.Core.DataMinerSystem.Automation
using Skyline.DataMiner.Core.DataMinerSystem.Automation;
using Skyline.DataMiner.Core.DataMinerSystem.Common;

Hope that helps you out, please do share a bit more on the context on why you want to control the state of this service element.  Maybe we can also share alternatives that suit your case even better.

KR, Thijs

Thijs Vanovenacker [SLC] [DevOps Advocate] Edited comment 14th January 2025
Thijs Vanovenacker [SLC] [DevOps Advocate] commented 22nd December 2024

And to make the cycle complete, This script could feed the "servicename" in via a script-parameter. That way you could create your own "control buttons" on the Visual overview of your service, launching this control script to execute the expected state action.

Dave Keller [DevOps Enabler] commented 14th January 2025

Thanks for your answer Thijs – we have indeed gone down the road of having a script to restart the Enhanced Service. We certainly have had the situation where we have had to restart the Enhanced service to re-pull data from other Elements.
I was wondering, is there a specific reason that there isn't the option to change state via the Hamburger Menu, or is it more of a legacy reason because they are Services, even though they also behave as Elements?

Thijs Vanovenacker [SLC] [DevOps Advocate] commented 14th January 2025

Hi Dave, I can imagine such feature would maybe open up other corner-cases or confusion, as normally services should not need "restart" options. In most of the situations there are typically better ways that you can develop the enhanced element to force refresh data by for example a button interaction or workflows being triggered via InterApp-calls or script interactions etc.

I'm happy to read that you managed to use the sample to work-around the case via automation-scripting. If you have a clear need for a feature as such, then you can either motivate a feature suggestion here on Dojo (see the "More" section), or reach out to your Technical contact person at Skyline to further expand on the use-case.

If you have no further questions or remarks, feel free to mark this question as "Answered". Thanks!

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

Recent questions

Alarm Dashboard PDF/CSV Export 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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