Enterprise Manager コマンド行クライアントの実行時サービスを使用して、アプリケーションサーバーとコラボレーションを監視できます。
始める前に、必ず Enterprise Manager サーバーを稼動中にしてください。
-s 引数を RuntimeService51x に設定します。-m 引数を目的のメソッドに設定します。パラメータごとに、-P 引数をその名前と値に設定します。
コマンドは、読みやすいように複数行で表示されています。実際のコマンドは 1 行で入力します。
-n 引数を使用して、実行時サービスで使用可能なメソッドのリストを表示できます。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -n Note: the order of the parameters is important. Available methods and parameters: -m getState -Pcomponent=<component> -PcomponentType=<componentType> -m startComponent -Pcomponent=<component> -PcomponentType=<componentType> -m getComponentsList -m stopComponent -Pcomponent=<component> -PcomponentType=<componentType> -m getStatus -Pcomponent=<component> -PcomponentType=<componentType> |
実行時サービスのメソッドでは、コンポーネントパスとコンポーネントタイプを指定します。この情報は、getComponentsList メソッドで取得できます。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -m getComponentsList e51x|Servers|myserver:4848 is51x e51x|Servers|myserver:4848|IQ_Manager_18007 stcms e51x|Servers|myserver:4848|Sun_JMQ_7676 jmq e51x|Servers|myserver:4848|Project1|Deployment1|CMap1|Service1 jce.JavaCollaborationDefinition e51x|Servers|myserver:4848|Project1|Deployment1|CMap1|Service2 jce.JavaCollaborationDefinition e51x|Servers|myserver:4848|Project1|Deployment1|CMap1|Topic1 messageService.Topic |
getState メソッドを使用して、JMS IQ Manager に加え、アプリケーションサーバーまたはコラボレーションの現在の状態を表示できます。パラメータとして、コンポーネントパスとコンポーネントタイプを指定します。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -m getState -Pcomponent="e51x|Servers|myserver:4848" -PcomponentType=is51x Up |
getStatus メソッドを使用して、アプリケーションサーバーまたはコラボレーションの基本情報を表示できます。パラメータとして、コンポーネントパスとコンポーネントタイプを指定します。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -m getStatus -Pcomponent="e51x|Servers|myserver:4848" -PcomponentType=is51x HostAndPort = myserver:4848 Component = e51x|Servers|myserver:4848 System = e51x RestartRequired = true |
startComponent メソッドを使用して、コラボレーションを開始できます。パラメータとして、コンポーネントパスとコンポーネントタイプを指定します。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -m startComponent -Pcomponent="e51x|Servers|myserver:4848|Project1|Deployment1|CMap1|Service1" -PcomponentType=jce.JavaCollaborationDefinition |
stopComponent メソッドを使用して、アプリケーションサーバードメイン、アプリケーションサーバーインスタンス、またはコラボレーションを停止できます。パラメータとして、コンポーネントパスとコンポーネントタイプを指定します。次に例を示します。
em-cmdline-client -l entmgrhost -p 15000 -u Administrator -w STC -s RuntimeService51x -m stopComponent -Pcomponent="e51x|Servers|myserver:4848|Project1|Deployment1|CMap1|Service1" -PcomponentType=jce.JavaCollaborationDefinition |
stopComponent メソッドでメッセージサーバーを停止することはできません。
コマンド行に、メソッドが成功したかどうかを示すフィードバックは表示されません。ただし、getState メソッドを使用して、コンポーネントが起動しているかダウンしているかを確認できます。