スクリプトによるクラスターの停止

スクリプトおよび wsadmin ツールを使用して、アプリケーション・サーバー、汎用サーバー、およびプロキシー・サーバーのクラスターを停止します。

始める前に

このタスクを実行するには、いくつかの方法があります。このトピックでは、AdminControl オブジェクトを使用し、 ご使用のアプリケーション・サーバー・ランタイム内で、クラスターを停止します。 代わりの方法として、AdminTask オブジェクトの ClusterConfigCommands コマンド・グループ、 または AdminClusterManagement スクリプト・ライブラリーの immediateStopAllRunningClusters、immediateStopSingleCluster、 stopAllClusters、および stopSingleCluster の各スクリプトを使用して、クラスターを管理することもできます。

手順

  1. Cluster MBean を識別して cluster 変数に割り当てる。
    • Jacl を使用:
      set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,*]
    • Jython を使用:
      cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*')
      print cluster
    このコマンドは Cluster MBean を戻します。
    出力例:
    WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1
  2. クラスターを停止します。
    • Jacl を使用:
      $AdminControl invoke $cluster stop
    • Jython を使用:
      AdminControl.invoke(cluster, 'stop')
    このコマンドは、停止操作を Cluster MBean で呼び出します。

トピックのタイプを示すアイコン タスク・トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_stopcluster
ファイル名:txml_stopcluster.html