I am trying to mask an alarm until it is cleared using an SLNet call. The current SLNet call, SetAlarmStateMessage, only lets me change the state of an alarm. I can currently mask the alarm but I also want that alarm to be unmasked once it is cleared.
Hi Julian,
You need to define the Info property with an SA object configured with an array of two strings. The first one will be the number of seconds the alarm will be masked (-1 if you want to unmask once is cleared) and the second is the mask message:
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 using instead always the correct UI or automation options provided in DataMiner Automation or through our web API."
Have you tried using State = 8 using the SetAlarmStateMessage? I tried an example call and that seems to be the state for Mask until cleared for a specific alarm. The message structure should like something like this:
AlarmId = YOUR_ALARM_ID
DataMinerID = YOUR_DMA_ID
ElementID = YOUR_ELEMENT_ID
State = 8
Gelber, this indeed worked. Thank you for your help.