﻿1 GetComponentLogs

     ----------------------------------------------------------------------

   getcomponentlogsを使用すると、ノードのコンポーネントログを表示できます。

  1.1 構文

   hpsum getcomponentlogs [--nodes [<nodelist>]] [--component
   <componentname>]

  1.2 パラメーター

   getcomponentlogsコマンドには次のオプションがあります。

   +------------------------------------------------------------------------+
   | パラメーター                | 説明                                     |
   |-----------------------------+------------------------------------------|
   | hpsum                       | HP SUMスクリプトがこのアクションを開始し |
   |                             | ます。                                   |
   |-----------------------------+------------------------------------------|
   | getcomponentlogs            | HP SUMエンジンからログを取得するコマン   |
   |                             | ド。                                     |
   |-----------------------------+------------------------------------------|
   |                             | この要求の対象となるノード。             |
   | --nodes [<nodelist>]        | ノードリストを指定しない場合、セッション |
   |                             | のすべてのノードが使用されます。         |
   |-----------------------------+------------------------------------------|
   |                             | HP SUMがログを表示するコンポーネントの名 |
   |                             | 前。                                     |
   | --component <componentname> | このパラメーターを使用する場合は、コンポ |
   |                             | ーネント名を入力する必要があります。コン |
   |                             | ポーネントを指定しない場合、HP SUMはすべ |
   |                             | てのコンポーネントのログを生成します。   |
   +------------------------------------------------------------------------+

  1.3 リターンコード

   +------------------------------------------------------------------------+
   | リターンコード         | Windows | Linux | テキスト                    |
   |------------------------+---------+-------+-----------------------------|
   | SUCCESS_NO_REBOOT      | 0       | 0     | The command was successful. |
   |                                          | （コマンドが成功しました。）|
   |------------------------+---------+-------+-----------------------------|
   | FAILURE_GENERAL        | -1      | 255   | A general failure occurred. |
   |                        |         |       | （一般障害が発生しました。）|
   |                        |         |       | For details, see the logs.  |
   |                        |         |       | （詳細は、ログを参照してくだ|
   |                        |         |       | さい。）                    |
   |------------------------+---------+-------+-----------------------------|
   |                        |         |       | A bad input parameter was   |
   | FAILURE_BAD_PARM       | -2      | 254   | encountered.（不正な入力パラ|
   |                        |         |       | メーターが検出されました。）|
   |                        |         |       | For details, see the logs.  |
   |                        |         |       | （詳細は、ログを参照してくだ|
   |                        |         |       | さい。）                    |
   |------------------------+---------+-------+-----------------------------|
   | FAILURE_COMMAND_FAILED | -4      | 252   | The command failed.         |
   |                        |         |       | （コマンドが失敗しました。）|
   |                        |         |       | For details, see the logs.  |
   |                        |         |       | （詳細は、ログを参照してくだ|
   |                        |         |       | さい。）                    |
   +------------------------------------------------------------------------+

  1.4 例

    Windowsのサンプルのコマンドライン

   C:\> hpsum getcomponentlogs /nodes localhost

    Linux/HP-UXのサンプルのコマンドライン

   $ hpsum getcomponentlogs --nodes 16.1.1.105 --component cp020024.exe
