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

340 views18 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 18 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Paulo Henriques [SLC] [DevOps Advocate]861 Posted 18 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 18 hours ago
You are viewing 1 out of 2 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