﻿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> | 前。このパラメーターを使用する場合は、コ |
   |                             | ンポーネント名を入力する必要があります。 |
   +------------------------------------------------------------------------+

  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
