作者: Wonder http://www.wonderslife.net/

BeanSoft提示: 务必事先配置好了节点管理器, 否则此命令执行后无效.

 

启动集群的脚本:
java weblogic.Admin -url AdminHost:7001   -username weblogic -password weblogic   STARTCLUSTER -clustername ACluster

成功后会看到类似的信息:
Starting servers in cluster ACluster: A2,A1All servers in the cluster “ACluster” started successfully. 

停止集群的脚本如下:
java weblogic.Admin -url AdminHost:7001   -username weblogic -password weblogic   STOPCLUSTER -clustername ACluster
如果这个命令执行成功会返回类似下面的内容:
Shutting down servers in cluster ACluster: A2,A1All servers in the cluster “ACluster” were issued the shutdown request.Look in the server logs to verify the success or failure of the shutdownrequest.

转载请注明:WebLogic Android 博客 » Weblogic8.1集群中批量启动和关闭所有服务器的脚本[转]