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

Masking and Unmasking alarms automatically by scheduler or automation script

342 views20 hours agoMasking and Unmasking alarms
1
Mohan Ramasamy Veerappan146 29th May 2025 0 Comments

Hi

Is there any possibility / way to mask and unmask alarms automatically by scheduler or any other automation script available ?

Would anybody please suggest any idea to achieve through Dataminer.

I have a functionality to develop in our project that in a specific time some of the systems going to power off in a site and again at some other time same systems going to power on. In this situation we don't want to monitor those alarms in Dataminer. By the way there is a dataminer documentation available to mask and unmask alarms manually, but in the documentation they haven't mentioned any automatic way.

Thanks,

Mohan RV

Paulo Henriques [SLC] [DevOps Advocate] Answered question 20 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Ben Vandenberghe [SLC] [DevOps Enabler]9.32K Posted 29th May 2025 2 Comments

Hi Mohan - based on the use case you describe, rather than masking those alarms, would it not be better to not generate those alarms in the first place?  The schedule feature on alarm templates would allow you to do that.  Scheduling an alarm template | DataMiner Docs.

Mohan Ramasamy Veerappan Posted new comment 8th July 2025
Mohan Ramasamy Veerappan commented 3rd June 2025

Thanks Ben for your prompt reply and I appreciate.
Yeah I have checked Scheduling alarm template feature, if we use this template then we cannot receive all the alarms of the element I guess. But my use case is we need to receive active alarms except filtered by some services using alarm description. And also we need to mask alarms for some services dynamically at any time frame by scheduling. If that works then we can do unmask of those alarms in the same manner.

Would you please suggest any of the source or any idea ?

Mohan Ramasamy Veerappan commented 8th July 2025

As you said if I'm using an alarm template by a particular time (schedule), then Is there any possibility to dynamically filter alarms by description ? Could you please suggest / advise me ?

1
Paulo Henriques [SLC] [DevOps Advocate]861 Posted 20 hours ago 0 Comments

Hi Mohan,

As Ben mentioned, scheduling the alarm template would be the cleanest solution. Of course, this approach means that no alarms would even be triggered, so I understand that this might not be the behavior you need.

I’m considering a customized solution that leverages both Correlation and Automation:

a) Create a correlation rule that is triggered only for the alarms you want, by configuring the appropriate alarm filter.

b) Configure it to run an automation script that masks (or unmasks) the alarm as required.

To give you an idea of an automation script that will mask the alarm, see below. Please keep in mind that the example uses some methods that have been deprecated recently, but it should still work.

using System;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.Messages;

public class Script
{

public void Run(Engine engine)
{

//get correlation base alarm details message
ScriptParam paramCorrelationAlarmInfo = engine.GetScriptParam(65006);

string alarmInfo = paramCorrelationAlarmInfo.Value;
string[] parts = alarmInfo.Split('|');

int alarmID = Convert.ToInt32(parts[0]);
int dmaID = Convert.ToInt32(parts[1]);
int severity = Convert.ToInt32(parts[7]);

engine.GenerateInformation("### correlated alarm to mask: " + dmaID + "/" + alarmID + "  severity: " + severity);

int state = 8; // 8=mask, 9=unmask
SetAlarmStateMessage sam = new SetAlarmStateMessage(dmaID, alarmID, state, "" );
//sam.Info = new SA(new string[2] { "6", "" }); // 6 seconds

Engine.SLNet.SendMessage(sam);

engine.GenerateInformation("### correlated alarm masked");
}
}

Paulo Henriques [SLC] [DevOps Advocate] Answered question 20 hours ago
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