jagadeesh.macherla

PISystem Refresh issue

Discussion created by jagadeesh.macherla on Feb 1, 2012
Latest reply on Feb 1, 2012 by cmanhard

Hi Team,

 

We are using the below code to refresh all the systems. As per our requirement, there is a list of servers, some of which are connected. If suppose one server is down, our requirement is to show all the other connected systems. I am using below code to get the list of connected servers.

 

 List<string> afServer = new List<string>();
 PISystems systems = new PISystems();
 systems.Refresh();
 foreach (PISystem server in systems)
 {
         afServer.Add(server.Name);
}

 

 

 

The issue is that if a server is down, then after refresh, it is showing error that "Can't connect to server :'serverName'". Our requirement is that it should skip the disconnected server but refresh other connected servers.

 

Thanks,

 

 

Outcomes