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
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • 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

Get Alarms in Automation

156 views19th August 2025alarms Automation
1
Ross Elliott [DevOps Advocate]835 15th August 2025 0 Comments

Hi, I'm looking for a method in automation of getting alarms for Elements. Is there a way of getting a table of alarms over a historical time period from the system? I need this to be in a script rather than a dashboard or LCA because based on the data I'll be carrying out further automation and config of Elements. Correlation is probably an option but I'd rather full control if it's possible. I think I've searched through docs but nothing is standing out to me at the moment. Thanks.

Matthijs Favorel [SLC] [DevOps Advocate] Answered question 19th August 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Matthijs Favorel [SLC] [DevOps Advocate]2.27K Posted 19th August 2025 2 Comments

Hi Ross,

To get Historic alarms in an automation script there are 2 ways:

  • Using the AlarmRepository, see this example for a GQI DataSource, but it can be used in a very similar way in automation scripts.
  • Using the GetAlarmDetailsFromDbMessage:

var message = new GetAlarmDetailsFromDbMessage
{
StartTime = start,
EndTime = end,
Filter = new Skyline.DataMiner.Net.Filters.AlarmFilter(),
AlarmTable = true,
};

var responses = engine.SendSLNetMessage(message);

This will return an array of AlarmEventMessages.

Matthijs Favorel [SLC] [DevOps Advocate] Posted new comment 26th August 2025
Ross Elliott [DevOps Advocate] commented 26th August 2025

Hi, thanks for the response it's really helpful. How do I use the filter? I can see the new AlarmFilter() has a Key and a Name, what do they refer to? How can I for example, filter by Severity, Protocol or View etc?

Matthijs Favorel [SLC] [DevOps Advocate] commented 26th August 2025

It's not super user friendly, but this is the way to make custom Alarm filters:

AlarmFilter customFilter = new AlarmFilter()
{
FilterItems = new AlarmFilterItem[]
{
new AlarmFilterItemInt(AlarmFilterField.ViewName, new int[] { 123 }),
new AlarmFilterItemOperator(AlarmFilterOperator.And),
new AlarmFilterItemInt(AlarmFilterField.Protocol, new int[] { 456, 789 })
}
};

The AlarmFilterField Enum has options for Protocol and View.

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