﻿1 GetAttributes

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

   getattributesを使用すると、選択したノードの属性のいずれかを表示できます。
   属性はSetAttributesコマンドを使用して変更できます。

  1.1 構文

   hpsum getattributes --nodes <nodelist>

  1.2 パラメーター

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

   +------------------------------------------------------------------------+
   | オプション         | 説明                                              |
   |--------------------+---------------------------------------------------|
   | HPSUM              | HP SUMスクリプトがこのアクションを開始します。    |
   |--------------------+---------------------------------------------------|
   | getattributes      | 選択したノードの属性を表示するコマンド。          |
   |--------------------+---------------------------------------------------|
   |                    | 属性を取得するノードのリスト。ノードリストを指定  |
   | --nodes [nodelist] | しない場合、セッションのすべてのノードが表示され  |
   |                    | ます。                                            |
   +------------------------------------------------------------------------+

  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 getattributes /nodes localhost

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

   $ hpsum getattributes --nodes localhost
