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 mask and/or clear alarm using automation script?

Solved100.91K views19th July 2023Automation script clear mask
4
Mateusz Kalisiak10 30th March 2021 0 Comments

Hello,

I need to automatically clear (and in some cases mask) particular alarm after an action is taken using tool created as automation script (i.e. Hyperlink). For alarm masking I know that there is WebService method MaskAlarm, but can’t find anything with regards to alarm clearing. Is it even possible to clear/mask alarm using any Engine methods?

Regards,

Mateusz

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 31st March 2021 0 Comments

Hi Mateusz, I would recommend you to check the DataMiner Automation course, available for free on Dojo. In this course, there are two videos that might be relevant to your question.

In the video ‘Executing scripts from Correlation‘, you will learn how to automatically trigger an Automation script on certain events by making use of correlation. In this video, parameter sets are used (backupElementStream.SetParameter(203, idx, (int)VlcInstanceState.Paused)) and element alarm masking (backupElementStream.Mask(“Main Stream is running.”)) as well.

In the video ‘Executing scripts from the Alarm Console‘, you will learn how to trigger an Automation script by using the context menu on an Alarm in the Alarm Console.

I hope this helps you further.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
1
Miguel Obregon [SLC] [DevOps Catalyst]18.86K Posted 11th April 2021 0 Comments

Hi Mateusz,

As far as I know there is no Engine method that is able to mask a specific alarm. As Jarno indicated, you could mask an element (that will also mask the alarm).

However, there is a SLNet call that you could use to mask an alarm. Please find below an example (tested using DMA version 10.1.3.0):

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

public class Script
{
public void Run(Engine engine)
{
// From Hyperlink
ScriptParam spDmaId = engine.GetScriptParam(“DMAID”);
ScriptParam spAlarmId = engine.GetScriptParam(“ALARMID”);
ScriptParam spRootKey = engine.GetScriptParam(“ROOTKEY”);

// Convert to integer
int iDmaId = Convert.ToInt32(spDmaId.Value);
int iAlarmId = Convert.ToInt32(spAlarmId.Value);
int iRootKey = Convert.ToInt32(spRootKey.Value);

// Define a RefTreeHelper object
DMAObjectRefTreeHelper dMAObjectRefTreeHelper = new DMAObjectRefTreeHelper();

// Setup the RefTreeHelper object
dMAObjectRefTreeHelper.SetupHelper(engine.SendSLNetSingleResponseMessage);

dMAObjectRefTreeHelper.ChangeMaskInfo(
new DMAObjectRefTree(new Skyline.DataMiner.Net.Messages.SLDataGateway.AlarmID(iDmaId, iAlarmId, iRootKey)),
//new MaskInfo(MaskType.UntilTimeElapsedOrUnmask, 60 /*Number of seconds*/, “Reason for masking”),
//new MaskInfo(MaskType.UntilClearanceOrUnmask,”Reason for masking”),
new MaskInfo(false), // Unmask the alarm
new CPECrawlerConfiguration()
);
}
}

Disclaimer:

Note that this is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice. We recommend to instead always use the correct UI or automation options provided in DataMiner Automation or through our web API.

Miguel Obregon [SLC] [DevOps Catalyst] Answered question 11th April 2021
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