I want to restart an AppCluster in WebSphere 8.5 using Jython.
cluster = AdminControl.completeObjectName('name=ICXTCluster,*')
AdminControl.invoke(cluster, 'restart')
This is not working:
Operation restart not in ModelMBeanInfo
So I tried to manually implement restart by stopping and then starting the cluster:
cluster = AdminControl.completeObjectName('name=ICXTCluster,*')
AdminControl.invoke(cluster, 'stop')
AdminControl.invoke(cluster, 'start')
It throws another error:
com.ibm.websphere.wlm.exception.ClusterException: Start operation failed because another administrative operation: Stop is already in progress.
The stop seems to work, ISC shows me the AppCluster as stopped. But it's not started again. I assume that those invoke operation is asynchron, so AdminControl.invoke(cluster, 'start') got executed before the previous stop was finished.
How can I stop the Cluster synchron? Or is there another way to restart it?