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 Dataminer Agent Errors via code (IDms)?

Solved560 views22nd August 2024DataMinerError IDms
0
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K 24th April 2024 0 Comments

I would like to know

  1. Number of DataMiner Errors
  2. What DataMiner Errors (e.g. Database is down, RTE in a process ...)

I need this in an Automation Script (user defined API) to check the status across the entire cluster before continuing with the action of the API Path itself.

I currently already check if all agents in the cluster are running, but this remains in the running state when there are Errors. So an additional check is required to prevent the API of doing things when the System is not capable to do so and return a proper error to the requester.

This info is already available via System Center > Agents

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 22nd August 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K Posted 24th April 2024 1 Comment

I found the following. please confirm if this is safe to use:

var alarmFilter = new Skyline.DataMiner.Net.Filters.AlarmFilter();
var alarmFilterItemelement = new Skyline.DataMiner.Net.Filters.AlarmFilterItemInt(Skyline.DataMiner.Net.Filters.AlarmFilterField.SeverityID, Skyline.DataMiner.Net.Filters.AlarmFilterCompareType.Equality,new[] { 24 });
alarmFilter.FilterItems = new[] { alarmFilterItemelement };

Skyline.DataMiner.Net.Messages.GetActiveAlarmsMessage gpm = new Skyline.DataMiner.Net.Messages.GetActiveAlarmsMessage
{
DataMinerID = dataMinerId,
Filter = alarmFilter,
ElementID = -1,
ParameterID = -1,
};

Skyline.DataMiner.Net.Messages.ActiveAlarmsResponseMessage responses = (Skyline.DataMiner.Net.Messages.ActiveAlarmsResponseMessage)engine.SendSLNetSingleResponseMessage(gpm);
if (responses.ActiveAlarms.Any())
{
// there are errors.
}

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 22nd August 2024
Mieke Dryepondt [SLC] [DevOps Advocate] commented 22nd August 2024

As an update, I’ve been using this for a while already and on high scale and it has been running perfectly.

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