Hi,
We have several automation scripts that log to external log files, with each cluster logging to different paths.
Currently I have it as a manual variable to define the DMS, for when the automation script is uploaded, but it would take out a human error point if we could get something like the DMS name to run a switch so the path is defined automatically.
Is there a class that can return a cluster unique identifier of some sort to implement this?
Hi Philip,
You could use the GetInfoMessage SLNet call with the Type option set to LocalDataMinerInfo.
var message = new GetInfoMessage(-1, InfoType.LocalDataMinerInfo);
var response = (GetDataMinerInfoResponseMessage)engine.SendSLNetSingleResponseMessage(message);
string agentName = response.AgentName;
string clusterName = response.Cluster;
int agentId = response.ID;
You will need to add the following using as well
using Skyline.DataMiner.Net.Messages;
This should provide you with enough information to help distinguish between your agents and clusters but I do have to add a disclaimer here that these kinds of SLNet calls are internal calls and typically not recommended to use since there is no official support and may be subject to change in the future.
Thanks Joao,
Something to add to the list to keep track of when upgrading.