IBM WebSphere サーバーディスカバリー
IBM WebSphere アプリケーションサーバーは、Java ベースの Web アプリケーションをホストするミドルウェアを備えたソフトウェアフレームワークです。ディスカバリー は、Windows または Linux システム上で実行されている WebSphere アプリケーションサーバーのインスタンスを検出すると、CMDB レコードを作成または更新します。
Windows 上の Websphere の検出
ディスカバリーの要件:
Windows システムで実行されている WebSphere アプリケーションサーバーの場合、MID サーバーで PowerShell を有効にします。
Linux 上の Websphere の検出
ディスカバリーの要件:
- WebSphere アプリケーションサーバーで SSH を有効にします。
- 次のプローブがコマンドを実行できるように、実行権限を設定します。
- WebSphere - serverindex.xml を取得:serverindex.xml ファイルの cat/読み込み権限
- WebSphere - cell.xml を取得:cell.xml ファイルの cat/読み込み権限
- WebSphere - server.xml を取得:server.xml ファイルの cat/読み込み権限
ディスカバリーおよびサービスマッピングに必要な特権コマンドのリストについては、「特権ユーザーを必要とする サービスマッピング コマンド」を参照して、組織内で Unix ベースのホストを検出およびマッピングするために、昇格された権限を必要とするコマンドのリストを確認してください。
プローブとセンサー
ディスカバリー は次のプロセスを使用して、Linux WebSphere アプリケーションサーバーを識別します。
- [Unix - アクティブプロセス] プローブは、com.ibm.ws.runtime.WsServer に一致する実行中のプロセスを検出します。たとえば、...com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer プロセスの出力には /opt/IBM/WPS/profiles/ccmdb/config localhostNode01Cell ccmdb01 server1 のパラメーターがあります。値は次のとおりです。
- 最後のパラメーター = server_name = server1
- 最後のパラメーター - 1 = node_name = ccmdb01
- 最後のパラメーター - 2 = cell_name = localhostNode01Cell
- 最後のパラメーター - 3 = config_path =‘/opt/IBM/WPS/profiles/ccmdb/config’
- 一致があると、IBM Websphere [cmdb_ci_app_server_websphere] テーブルにレコードが作成されます。次のプローブがトリガーされます。
- WebSphere - セル
- WebSphere - Web アプリケーション
- WebSphere –Web サービス
- [WebSphere - セル] プローブは、実行中のプロセスのパラメーターを使用してインスタンスの cell.xml ファイルを検索し、次に、関連する <config_path>\cells\<cell_name>\ ディレクトリ内を検索します。
- プローブが cell.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Websphere セル [cmdb_ci_websphere_cell] テーブルレコードを入力します。
- プローブが serverindex.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Web アプリケーション [cmdb_ci_web_application] テーブルレコードを入力します。
- プローブが server.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Web サービス [cmdb_ci_web_service] テーブルレコードを入力します。
ディスカバリー は次のプロセスを使用して、Windows WebSphere アプリケーションサーバーを識別します。
- [Windows - アクティブプロセス] プローブは、com.ibm.ws.runtime.WsServer に一致する実行中のプロセスを検出します。たとえば、...com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer プロセスの出力には /opt/IBM/WPS/profiles/ccmdb/config localhostNode01Cell ccmdb01 server1 のパラメーターがあります。値は次のとおりです。
- 最後のパラメーター = server_name = server1
- 最後のパラメーター - 1 = node_name = ccmdb01
- 最後のパラメーター - 2 = cell_name = localhostNode01Cell
- 最後のパラメーター - 3 = config_path =‘/opt/IBM/WPS/profiles/ccmdb/config’
- 一致があると、IBM Websphere [cmdb_ci_app_server_websphere] テーブルにレコードが作成されます。次のプローブがトリガーされます。
- Windows - WebSphere - セル
- Windows - WebSphere - Web アプリケーション
- Windows - WebSphere –Web サービス
- [Windows - WebSphere - セル] プローブは、実行中のプロセスのパラメーターを使用してインスタンスの cell.xml ファイルを検索し、次に、関連する <config_path>\cells\<cell_name>\ ディレクトリー内を検索します。
- プローブが cell.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Websphere セル [cmdb_ci_websphere_cell] テーブルレコードを入力します。
- [Windows - WebSphere - Web アプリケーション] プローブは、実行中のプロセスのパラメーターを使用してインスタンスの serverindex.xml ファイルを検索し、次に、関連する <config_path>\cells\<cell_name>\nodes\<node_name> ディレクトリー内を検索します。
- プローブが serverindex.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Web アプリケーション [cmdb_ci_web_application] テーブルレコードを入力します。
- [Windows - WebSphere - Web サービス] プローブは、実行中のプロセスのパラメーターを使用してインスタンスの server.xml ファイルを検索し、次に、関連する <config_path>\cells\<cell_name>\nodes\<node_name>\servers\<server_name> ディレクトリー内を検索します。
- プローブが server.xml ファイルを正常に見つけた場合、センサーはその内容を読み取り、必要に応じて追加の Web サービス [cmdb_ci_web_service] テーブルレコードを入力します。
収集されるデータ
| テーブル | フィールド | ソース |
|---|---|---|
| cmdb_ci_app_server_websphere | 名前 (name) | 実行中のプロセス |
| cmdb_ci_websphere_cell | 名前 (name) | cell.xml |
| cmdb_ci_websphere_cell | セル ID (cell_id) | cell.xml |
| cmdb_ci_websphere_cell | セルタイプ (cell_type) | cell.xml |
| cmdb_ci_websphere_cell | セルディスカバリープロトコル (cell_discovery_protocol) | cell.xml |
| cmdb_ci_web_service | 名前 (name) | server.xml |
| cmdb_ci_web_service | サービス ID (service_id) | server.xml |
| cmdb_ci_web_application | 名前 (name) | serverindex.xml |
| ラベル | テーブル名 | フィールド名 | ソース |
|---|---|---|---|
| 名前 | cmdb_ci_websphere_cell | name | server.xml |
| アプリケーション サーバー | cmdb_ci_web_service | app_server | 内部参照 |
| 名前 | cmdb_ci_web_service | name | server.xml |
| 名前 | cmdb_ci_web_application | name | serverindex.xml |
| アプリケーション サーバー | cmdb_ci_web_application | app_server | serverindex.xml |
リレーションシップ
次の関係が CI 関係 [cmdb_rel_ci] テーブルに作成されます。| 親クラス | 関係性タイプ | 子クラス |
|---|---|---|
| cmdb_ci_app_server_websphere | Runs on::Runs | cmdb_ci_linux_server |
| cmdb_ci_win_server | Runs on::Runs | cmdb_ci_win_server |
| cmdb_ci_app_server_websphere | Contains::Contained by | cmdb_ci_web_application |
| cmdb_ci_web_service | Runs on::Runs | cmdb_ci_app_server_websphere |
| cmdb_ci_websphere_cell | Contains::Contained by | cmdb_ci_app_server_websphere |