﻿1 SetAttributes

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

   setattributesを使用すると、HP SUMノードの属性を変更できます。
   権限が適切でない場合、要求されたセットにパラメーターが含まれていない場合、
   または値が使用できない場合、このコマンドはパラメーターが無効であるという通
   知を返すことがあります。

   force、rewrite、downgrade、action、delay、username、password、baseline、
   ignore_warnings、およびmessage（リブートメッセージ）のノード属性を設定でき
   ます。

  1.1 構文

   hpsum setattributes [--nodes N1] attribute1=value1 attribute2=value2

  1.2 パラメーター

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

   +------------------------------------------------------------------------+
   | オプション         | 説明                                              |
   |--------------------+---------------------------------------------------|
   | hpsum              | HP SUMスクリプトがこのアクションを開始します。    |
   |--------------------+---------------------------------------------------|
   | setattributes      | 保留中のHP SUM操作に属性を設定するコマンド。      |
   |--------------------+---------------------------------------------------|
   | --nodes [nodelist] | ノードおよびノードに適用する属性を指定します。    |
   | [attribute=value]  |                                                   |
   +------------------------------------------------------------------------+

  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 setattributes /nodes localhost force=true 16.1.1.105 force=true
   rewrite=true

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

   $ hpsum setattributes --nodes localhost force=true 16.1.1.105 force=true
   rewrite=true
