名前
isbizcollectinfo - 業務ユニットの一括情報採取
形式
isbizcollectinfo [-d output_dir] bizname
機能説明
指定された業務ユニットに関するトラブル調査用の資料を一括で採取します。
調査資料は、以下の形式で格納されます。
<output_dir>/collect/<日時>
日時は、「YYYYMMDDhhmmss」(年4桁・月2桁・日2桁・時間2桁・分2桁・秒2桁)の形式になります。例えば、2015年1月23日12時34分56秒の場合、「20150123123456」になります。
調査資料の格納先ディレクトリを-dオプションで指定しない場合は、対話形式で格納先ディレクトリを問い合わせます。問合わせに答えて格納先ディレクトリを指定してください。デフォルトでは、カレントディレクトリ配下に調査資料を格納します。
オプション
オプション名 | 説明 |
---|---|
-d | 調査資料の格納先ディレクトリを指定します。
|
オペランド
オぺランド名 | 説明 |
---|---|
bizname | 調査資料を採取する業務ユニットの業務ユニット名を指定します。 |
戻り値
0: 正常終了
0以外: 異常終了
注意事項
本コマンドは、トラブルが発生した直後に実行してください。
本コマンドで採取した資料の複写、アーカイブの作成、および削除は、インフラ管理者が行ってください。
調査資料の格納先ディレクトリは、インフラ管理者の指示に従って指定してください。
UpdateAdvisorがインストールされた環境で本コマンドを使って調査資料採取を行う場合、本コマンドを実行する前に、UpdateAdvisorの利用許諾への同意を行ってください。
UpdateAdvisorの利用許諾は、UpdateAdvisorをインストール後、初めてuamコマンドを実行したときに表示されます。
本コマンドを複数同時に実行した場合、「the directory already exists.」または「creating a directory for collecting information failed.」というメッセージを出力して、調査資料格納先ディレクトリの作成に失敗することがあります。その場合は、isbizcollectinfoコマンドを再度実行してください。
使用例
格納先ディレクトリをカレントディレクトリから「/isas」に変更し、業務ユニット「biz1」の調査資料を格納します。
以下の太字部分は、キーボードから入力した内容を示しています。
$ /opt/FJSViscopt/bin/isbizcollectinfo biz1 Default collecting directory is following: Collecting directory: /home/user1/collect/20150820182804 Do you want to change the collecting directory? (default: n) [y,n,q] y Please specify collecting directory (default: /home/user1/collect/20150820182804) /isas Collecting directory is now following: Collecting directory: /isas/collect/20150820182820 Do you want to change the collecting directory? (default: n) [y,n,q] isbizcollectinfo: INFO: iscopt35097: Collecting information in isbizcollectinfo started. 14% of collecting was completed 28% of collecting was completed 42% of collecting was completed 57% of collecting was completed 71% of collecting was completed 85% of collecting was completed 100% of collecting was completed isbizcollectinfo: INFO: iscopt35001: command executed successfully.
業務ユニット「biz1」の調査資料を「/isas」配下に格納します。
$ /opt/FJSViscopt/bin/isbizcollectinfo -d /isas biz1 isbizcollectinfo: INFO: iscopt35097: Collecting information in isbizcollectinfo started. 14% of collecting was completed 28% of collecting was completed 42% of collecting was completed 57% of collecting was completed 71% of collecting was completed 85% of collecting was completed 100% of collecting was completed isbizcollectinfo: INFO: iscopt35001: command executed successfully.
関連項目