Hello,
via automation script, how to modify SNMP settings, timeout value of an element ?
Fenta Alemahu [SLC] [DevOps Enabler] Answered question 23 hours ago
Hi Sok-Khing
You can achieve this in a couple of steps by exploiting the IDms interface:
- Retrieve the IDms interface in the Automation engine: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Automation.EngineExtensions.GetDms.html
- Using the IDms interface, get the element you want to manipulate: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDms.GetElement.html
- Retrieve the element properties that you would like to modify: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDmsElement.html
- You can get the element timeout setting from the AdvancedSettings property: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IAdvancedSettings.Timeout.html#Skyline_DataMiner_Core_DataMinerSystem_Common_IAdvancedSettings_Timeout
- You can get the SNMP settings by first getting the Connections property of the element and then casting that to one of the SNMP type connection itnerfaces. https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDmsElement.Connections.html#Skyline_DataMiner_Core_DataMinerSystem_Common_IDmsElement_Connections
Fenta Alemahu [SLC] [DevOps Enabler] Answered question 23 hours ago