Hi,
I've been searching the dojo for hints on how to update IP settings via automation, and this article came close: https://community.dataminer.services/question/change-elements-ip-address-from-automation-script/
Aparantly the "currentElementInfo.PortInfo[0].PollingIPPort" does not contain the IP anymore, it only has the port.
Can someone provide an updated example, or any other ideas on how to approach this?
I'm also looking for a way to enable/disable the SNMP agent (under Advanced element settings) for each device via automation.
We are running version 10.2.0.0-11774-CU3
BR
Jan-Terje Larsen
Hi Jan,
The best way you have to get the structure of PortInfo (or any other structure) is by using the Client Test Tool.There, you send a message GetLiteElementInfo to retrieve the data for your element, like in the example below.
PortInfo is an array, each element containing a certain protocol type. You can see that the ProtocolType for http has the value "Http".
Using this valuable info together with the IntelliSense in Visual Studio Code, you'll quickly get what you need.