I want to get active dataminer agents through automation script.
Baranisudha Murugesan Selected answer as best 11 hours ago
Hi Baranisudha,
To retrieve all DataMiner agents in the cluster, you could use the IDms.GetAgents() method from the class library (Skyline.DataMiner.Core.DataMinerSystem.Common NuGet).
To only get the active agents, you can add the following Where filter:
var agents = dms.GetAgents().Where(agent => agent.State == AgentState.Running);
Baranisudha Murugesan Selected answer as best 11 hours ago