I am currently trying to get Alarms for a specific Element using the GetAlarmDetailsFromDbMessage.
The response of the SendSLNetMessage Call will contain a maximum of 12 Alarms for a given Timeframe. Which however does not include all all the alarms.
I now tried running the SendSLNetMessage Call in a loop with the StartTime beeing the EndTime of the previous call. This however will return 0 Alarms for the second Call. I know that there should be more alarms during the Timeframe.
How do I retreive all alarms for a given frame?
I do know that it is recommended to not even use SendSLNetMessage, but I have not yet figured out the repository, so this will be temporary until then.
Hi Adrian,
If your DMA is on version 10.1.0 or higher, you might want to try the Repository API for alarms:
You might notice that the first part is the same as the GetAlarmsDetailsFromDbMessage call as per the answer to this other question.
P.S. An automation script using the sample code above, requires the following namespaces:
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.Filters;
using Skyline.DataMiner.Net.Messages;
using SLDataGateway.API.Types.Repositories;
using System;
using System.Linq;
It seems like this still does not solve the Issue of Paging. I do not get all alarms for the timeframe. Do you know if there is a setting of this?
Hi Adrian. I think the best will be to get in contact with your assigned technical account manager to check in more detail this situation.
Thank you anyways, this was already a big help
There are indeed still some things not working properly for the alarm repository, for now i would still recommend to use the getalarmsdb message, also explained here:
https://community.dataminer.services/question/how-to-get-history-of-alarms-in-a-protocol/
Thank you, this solves one of the issues I was having