Script to get parent config id wsadmin
![ibm websphere](https://i0.wp.com/www.techpaste.com/wp-content/uploads/2014/07/ibm-websphere.jpeg?fit=225%2C150&ssl=1)
Below JACL script can be used to Check If cluster exists and get parent config id wsadmin. For Jython scripts on the same can be attained from IBM here. #------------------------------------------------------------------------------------ # -- do we have a cluster by this name? #-- Check If cluster exists and get config ID of cluster #------------------------------------------------------------------------------------ proc chk_getClusterID {} { puts "checklist: -- Checking for cluster $clusterName ..." set clusterId [$AdminConfig getid /ServerCluster:$clusterName/] if { [llength $clusterId] == 0 } { puts "checklist: -- Cluster by name $clusterName does not exists ..." puts "$clusterId" return 0 } else { puts "checklist: -- Cluster $clusterName found." puts "checklist: -- ClusterID: $clusterId" return 1 }}
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.