What is the best means to mask all the alarms that are linked to the lower CPE components starting at a specific point in the topology.
For example:
Mask RHE component should result in masking the RHE and all Hubs, .... that are linked to it.
UnMasking the RHE should unmask the RH and all Hubs....
I found there is a CPECollectorHelper and would like to know how to (best) use it to accomplish this need.
Yes a user can use the MaskLinkedDMAObjectRefTreesThroughTopology of CPECollectorHelper in an automation script.
A MaskInfo object will be needed with: the type of masking, masking/unmasking and which user applies the mask.
See the following example:
private readonly CPECollectorHelper _helper = new CPECollectorHelper(Engine.SLNetRaw);
//The mask object to use when (un)masking.
MaskInfo mask = new MaskInfo()
{
MaskType = MaskType.UntilUnmask,
DoMask = true,
User = Engine.SLNetRaw.UserName
};
//Masking of systemType RHE with systemName RHE_Europe
_helper.MaskLinkedDMAObjectRefTreesThroughTopology(mask, "RHE", "RHE_Europe");
Hi Mieke,
Applying the LinkedIds in the EMP Manager to make sure the topology is known.
This will make sure the MaskLinkedDMAObjectRefTreesThroughTopology method will know the topology and mask each component.
Alternatively, you can build logic to look up topology and only mask the object you want.
Hello Dries,
Thanks you for the code example.
I’ve tried it out and it is only masking the Alarm on e.g. the RHE. it does not mask the alarms on the underlying HUBs.
I expected this would alarm all of them.
For example:
Alarm 1: System Name = Izegem, System Type = RHE
Alarm 2: System Name = Izegem|HubA, System Type Hub
Alarm 3: System Name = Izegem|HubB, System Type Hub
Running the code will only mask Alarm 1 while I want alarm 2 and 3 also to be alarmed as they are in the Topology under RHE Izegem.