Please, Dojo, what's the quickest way to quickly add in alarm console a new column, reporting the DMA agent that hosts the element?
Shall I define a custom element (or alarm) property for this?
If so, how can I get the DMA info reflected in the new property?
Thanks
Just timeouts, Miguel – unfortunately these elements are configured with the “local host” IP // “127.0.0.1:port” – so even when I open the “comments” field I have no idea where these are hosted
Adding a screenshot below to clarify the context
Hi,
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the most relevant answer to indicate that the question is resolved?
As this question has now been inactive for a long time, I will close it. If you still want more information, could you post a new question?
Miguel / Edib - sharing below some more context:
I was hoping we can embed in console the host-name of the DMA hosting the element, as it figures in the "Element Edit" wizard: that's the name that most teams would recognize
with the DMA id I can troubleshoot, but with more than 40 DMA-IDs in cluster, it's still a long shot without the DMA name (or IP address of the DMA) - unfortunately this is a legacy implementation - otherwise I'd use the actual IP address rather than "local host" 127.0.0.1 - the same can be presented for any DMA in the cluster (40+), hence the enquiry if can use an element property to be added to the console.
Im not sure how comfortable you are with automation scripts, but we do have this generic script for adding custom properties to elements.
https://github.com/SkylineCommunications/SLC-AS-SetElementCustomProperty
I just glanced over it, but I’m pretty sure you can use it as a guideline for your use case.
Steps to take in your AS would be something along the lines:
1. Create dictionary with DMA ID and DMA name pairs
2. Create your custom element property(IDms.CreateProperty() will create property on your system, note that you have to pass right parameters, in your case it would be something like IDms.CreateProperty(“name”, PropertyType.Element, true, true/false, false)
3. Loop over all elements on the system(IDms.GetElements() will return all elements on the system) and assign correct custom property values(IDmsElement.Properties will return all properties on that element and, after filtering out your property, you can use IDmsElementProperty.AsWriteable() to assign value to it for that element) based on DMA ID for that specific element(IDmsElement.AgentId property will return hosting agent ID) using the dictionary you defined in step 1. In order to se properties valus you can use
Note that this could take a while, depending on the size of your system.
Hope you find this useful,
Cheers
Hi Alberto,
Are you dealing with imported elements from another cluster, or elements migrated across DMAs in the same cluster?