如何使用Weblogic8.1批量启动和关闭所有服务器的脚本?

如何使用Weblogic8.1批量启动和关闭所有服务器的脚本?

启动集群的脚本:
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.