Quantcast
Viewing latest article 6
Browse Latest Browse All 17

wsadmin – How to get a list of servers in a cluster

clusterId=AdminConfig.getid("/ServerCluster:"+clusterName)
clusterMembers=AdminConfig.list('ClusterMember', clusterId)
clusterMembers = wsadminToList(clusterMembers)

1. Get the cluster id based on the cluster name.
2. Get the list of members for the cluster id.
3. Convert the list of members into a Jython array.

wsadminToList is found here.


Viewing latest article 6
Browse Latest Browse All 17

Trending Articles