﻿1 SetAttributes

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

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

   forcefirmware、forcesoftware、rewrite、downgrade、action、delay、
   username、password、ignore_warnings=[true/false]、baseline、
   ignore_warnings、およびmessage（再起動メッセージ）のノード属性を設定でき
   ます。

   [注記]                                
          rewrite=true、またはdowngrade=trueパラメーターを使用する場合は、
          forcefirmware=true、forcesoftware=true、またはその両方を使用する必
          要があります。

   以下の属性は、Superdome 2ノードに固有です。
   update_type=[ALL/COMPLEX/PARTITIONS]、device_list=[devicelist]、および
   reboot_list=[rebootlist]。

   セッションのopen_firewall属性を設定することができます。

  1.1 構文

   hpsum setattributes --nodes [<nodelist>] attribute1=value1
   attribute2=value2

   hpsum setattributes --session attribute1=value1

  1.2 パラメーター

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

   +------------------------------------------------------------------------+
   | パラメーター              | 説明                                       |
   |---------------------------+--------------------------------------------|
   | hpsum                     | HP SUMスクリプトがこのアクションを開始しま |
   |                           | す。                                       |
   |---------------------------+--------------------------------------------|
   | setattributes             | 保留中のHP SUM操作に属性を設定するコマン   |
   |                           | ド。                                       |
   |---------------------------+--------------------------------------------|
   | --nodes [<nodelist>]      | ノードおよびノードに適用する属性を指定しま |
   | attribute=value           | す。                                       |
   |---------------------------+--------------------------------------------|
   |                           | 変更するセッション属性を指定します。       |
   |                           |                                            |
   |                           |                                            |
   | --session attribute=value | [注記]                                     |
   |                           |        現在、HP SUMはopen_firewall属性の変 |
   |                           |        更のみをサポートします。            |
   |                           |                                            |
   +------------------------------------------------------------------------+

  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 16.1.1.105 forcefirmware=true
   forcesoftware=true rewrite=true downgrade=true

   C:\> hpsum setattributes /nodes 16.1.1.117 update_type=all

   C:\> hpsum setattributes /session open_firewall=yes

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

   $ hpsum setattributes --nodes 16.1.1.105 forcefirmware=true
   forcesoftware=true rewrite=true downgrade=true

   $ hpsum setattributes --nodes 16.1.1.117 update_type=all

   $ hpsum setattributes -session open_firewall=yes
