Hello
How to get the Ip address of DMA ID via automation script?
Hi Eric,
If you would need the IP address of a specific DMA in a cluster, you can use the ‘GetDataMinerByIDMessage’ SLNet message as follows:
var agentId = 123;
var message = new GetDataMinerByIDMessage(agentId);
var response = engine.SendSLNetSingleResponseMessage(message) as GetDataMinerInfoResponseMessage;var primaryIP = response.PrimaryIP;
var secondaryIP = response.SecondaryIP;
Hi Eric,
This question was already asked, which the short answer is there is a property which you can access from the script that contains the value for the IP Address of the DMA.
Example:
string ip = Engine.SLNetRaw.ServerDetails.AgentIP;
How to get the IP address of DMA via automation script – DataMiner Dojo
Let me know if you need a script example.
Thank you Tom. It works perfectly!