﻿1 SetAttributes

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

   software、firmware、rewrite、downgrade、action、delay、message、username、
   password、ignore_warnings、on_failed_dependency、およびbaselineのノード属
   性を設定できます。

   対話式CLIでセッション属性を割り当てるには、以下の例を使用してください。

   hpsum setattributes --session <attribute>=<value>（Linux）

   hpsum setattributes /session <attribute>=<value>（Windows）

   +------------------------------------------------------------------------+
   | セッション属性               | 有効な値                                |
   |------------------------------+-----------------------------------------|
   | auto_save_session            | [true|false]                            |
   |------------------------------+-----------------------------------------|
   | auto_save_session_time       | <integer> - 時間（分単位）。            |
   |                              | デフォルトは15分です。                  |
   |------------------------------+-----------------------------------------|
   | engine_mode                  | [debug|release]                         |
   |------------------------------+-----------------------------------------|
   | language                     | [en|ja|cn]                              |
   |------------------------------+-----------------------------------------|
   |                              | [omithost|omitcomponent|force]          |
   |                              |   o omithost - HP SUMは、失敗した依存関 |
   |                              |     係を検出した場合、ホストをスキップ  |
   |                              |     します。（デフォルト）              |
   |                              |                                         |
   |                              |   o omitcomponent - HP SUMは、失敗した  |
   | on_failed_dependency         |     依存関係を検出した場合、コンポーネ  |
   |                              |     ントだけをスキップします。ノード上  |
   |                              |     の他のコンポーネントは展開されます。|
   |                              |                                         |
   |                              |   o force - HP SUMは、失敗した依存関係  |
   |                              |     を含むコンポーネントを強制的に展開  |
   |                              |     します。                            |
   |------------------------------+-----------------------------------------|
   |                              | [never|ifneeded|always] - このセッショ  |
   | reboot                       | ンで追加されたすべてのノードを対象に、  |
   |                              | オプションを定義します。                |
   |------------------------------+-----------------------------------------|
   |                              | <integer> - 再起動を開始するまでにHP SUM|
   |                              | が待機する時間（秒単位）。範囲は30～3600|
   | reboot_delay                 | です。このコマンドは、reboot=ifneededま |
   |                              | たはreboot=alwaysを必要とします。このセ |
   |                              | ッションで追加されたすべてのノードを対象|
   |                              | に、オプションを定義します。            |
   |------------------------------+-----------------------------------------|
   |                              | <string> - このセッションで追加されたす |
   | reboot_message               | べてのノードで使用される再起動メッセージ|
   |                              | を定義します。                          |
   |------------------------------+-----------------------------------------|
   |                              | [normal|verbose]                        |
   |                              |   o normal - 展開について、HP SUMが提供 |
   | verbosity                    |     するデフォルトの量の情報。          |
   |                              |                                         |
   |                              |   o verbose - 情報を使用可能な場合、展開|
   |                              |     に関してより詳細な情報を提供します。|
   |------------------------------+-----------------------------------------|
   |                              | [true|false]                            |
   | verbose                      |                                         |
   |                              | hpsum setattributes /nodes verbose=true |
   |------------------------------+-----------------------------------------|
   |                              | [directory_path] - HP SUMがレポートを保 |
   | report_dir                   | 存するディレクトリのパス。              |
   |                              | 例：C:\hpsum_reports\                   |
   |------------------------------+-----------------------------------------|
   | use_proxy_script             | [true|false]                            |
   |------------------------------+-----------------------------------------|
   | proxy_url                    | <string> - プロキシサーバーのURL。      |
   |------------------------------+-----------------------------------------|
   | proxy_ftp_port               | <string> - プロキシサーバーのFTPポート。|
   |------------------------------+-----------------------------------------|
   | proxy_script                 | <string> - プロキシスクリプトのフルパ   |
   |                              | ス。                                    |
   |------------------------------+-----------------------------------------|
   | proxy_username               | <string> - プロキシサーバーのユーザー   |
   |                              | 名。                                    |
   |------------------------------+-----------------------------------------|
   | proxy_password               | <string> - プロキシサーバーのユーザーの |
   |                              | パスワード。                            |
   |------------------------------+-----------------------------------------|
   | open_firewall                | [yes|no]                                |
   |------------------------------+-----------------------------------------|
   | report_dir                   | HP SUMがレポートを保存するディレクトリの|
   |                              | 指定を可能にするオプションパラメーター。|
   |------------------------------+-----------------------------------------|
   |                              | hp.comで利用できるベースラインバンドルに|
   | hp-passport-token=[token id] | アクセスするための有効なHP Passport     |
   |                              | Credentials API Token Authenticationキー|
   |                              | を使用します。                          |
   +------------------------------------------------------------------------+

   +------------------------------------------------------------------------+
   | ノード固有の  |                                                        |
   | 属性          | 有効な属性                                             |
   |---------------+--------------------------------------------------------|
   |               | [true|false]                                           |
   |               |                                                        |
   |               | この属性をtrueに設定する場合は、以下の設定を入力しま   |
   |               | す。                                                   |
   |               |                                                        |
   |               |   o vcenter_ipaddress - VMware vCenterノードのIPアドレ |
   | VMware nodes  |     ス。                                               |
   |               |                                                        |
   | Use_vCenter   |   o vcenter_username                                   |
   |               |                                                        |
   |               |     - VMware vCenterノードのユーザー名。               |
   |               |                                                        |
   |               |   o vcenter_password                                   |
   |               |                                                        |
   |               |     - VMware vCenterノードに接続するユーザーのパスワー |
   |               |       ド。                                             |
   |---------------+--------------------------------------------------------|
   |               | 指定される可能性があるオプション：                     |
   |               |                                                        |
   |               |   o true                                               |
   |               |                                                        |
   |               |   o false                                              |
   | Linuxノード   |                                                        |
   |               | その他の属性：                                         |
   | --use_sshkey  |                                                        |
   |               |   o privatekeyfile - プライベートキーのアドレスを入力  |
   |               |     します。プライベートキーは、PEM形式でなければなり  |
   |               |     ません。                                           |
   |               |                                                        |
   |               |   o passphrase -（オプション）プライベートキーのパスフ |
   |               |     レーズを入力します。                               |
   |---------------+--------------------------------------------------------|
   | software      | [true|false] - このセッションで追加されたすべてのノー  |
   |               | ドを対象に、オプションを定義します。                   |
   |---------------+--------------------------------------------------------|
   | firmware      | [true|false] - このセッションで追加されたすべてのノー  |
   |               | ドを対象に、オプションを定義します。                   |
   |---------------+--------------------------------------------------------|
   | rewrite       | [true|false] - このセッションで追加されたすべてのノー  |
   |               | ドを対象に、オプションを定義します。                   |
   |---------------+--------------------------------------------------------|
   | rewrite       | [true|false] - このセッションで追加されたすべてのノー  |
   |               | ドを対象に、オプションを定義します。                   |
   +------------------------------------------------------------------------+

   +------------------------------------------------------------------------+
   | Superdome 2/X固有の    |                                               |
   | 属性                   | 有効な属性                                    |
   |------------------------+-----------------------------------------------|
   | update_type            | [ALL/COMPLEX/PARTITIONS] - この値は、         |
   |                        | Superdome 2/Xノードの何をアップデートするのか |
   |                        | をHP SUMに通知します。                        |
   |------------------------+-----------------------------------------------|
   | device_list            | [devicelist] - この値は、アップデートの対象に |
   |                        | するSuperdome 2/XノードをHP SUMに通知します。 |
   |------------------------+-----------------------------------------------|
   | reboot_list            | [rebootlist] - この値は、展開後に再起動する   |
   |                        | Superdome 2/XノードをHP SUMに通知します。     |
   +------------------------------------------------------------------------+

   以下の認証情報がスイッチAのものと異なる場合、スイッチBのMoonshot固有属性を
   設定できます。

   +------------------------------------------------------------------------+
   | Moonshot固有の    |                                                    |
   | 属性              | 有効な属性                                         |
   |-------------------+----------------------------------------------------|
   | switch_username   | [username] - Moonshot Aスイッチのユーザー名。      |
   |-------------------+----------------------------------------------------|
   | switch_password   | [password] - Moonshot Aスイッチのパスワード。      |
   |-------------------+----------------------------------------------------|
   | switch_enable     | [enable_password] - Moonshot Aスイッチの有効化パス |
   |                   | ワード。                                           |
   |-------------------+----------------------------------------------------|
   | switchb_username  | [username] - Moonshot Bスイッチのユーザー名。      |
   |-------------------+----------------------------------------------------|
   | switchb_password  | [password] - Moonshot Bスイッチのパスワード。      |
   |-------------------+----------------------------------------------------|
   | switchb_enable    | [enable_password] - Moonshot Bスイッチの有効化パス |
   |                   | ワード。                                           |
   +------------------------------------------------------------------------+

   次の表は、ダウングレード属性と再書き込み属性の組み合わせを示します。

   +------------------------------------------------------------------------+
   | GUIで選択した展開内容 | 対話式CLIモードコマンドの例                    |
   |-----------------------+------------------------------------------------|
   |                       | hpsum setattributes /nodes localhost           |
   | ソフトウェアのみ      | rewrite=false downgrade=false firmware=false   |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   |                       | hpsum setattributes /nodes localhost           |
   | ファームウェアのみ    | rewrite=false downgrade=false firmware=true    |
   |                       | software=false                                 |
   |-----------------------+------------------------------------------------|
   | ファームウェアおよび  | hpsum setattributes /nodes localhost           |
   | ソフトウェア          | rewrite=false downgrade=false firmware=true    |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ソフトウェアの        | hpsum setattributes /nodes localhost           |
   | ダウングレード        | rewrite=false downgrade=true firmware=false    |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ファームウェアの      | hpsum setattributes /nodes localhost           |
   | ダウングレード        | rewrite=false downgrade=true firmware=true     |
   |                       | software=false                                 |
   |-----------------------+------------------------------------------------|
   |                       | hpsum setattributes /nodes localhost           |
   | 両方のダウングレード  | rewrite=false downgrade=true firmware=true     |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ソフトウェアの        | hpsum setattributes /nodes localhost           |
   | 再書き込み            | rewrite=true downgrade=false firmware=false    |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ファームウェアの      | hpsum setattributes /nodes localhost           |
   | 再書き込み            | rewrite=true downgrade=false firmware=true     |
   |                       | software=false                                 |
   |-----------------------+------------------------------------------------|
   |                       | hpsum setattributes /nodes localhost           |
   | 両方の再書き込み      | rewrite=true downgrade=false firmware=true     |
   |                       | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ソフトウェアの        | hpsum setattributes /nodes localhost           |
   | 再書き込みと          | rewrite=true downgrade=true firmware=false     |
   | ダウングレード        | software=true                                  |
   |-----------------------+------------------------------------------------|
   | ファームウェアの      | hpsum setattributes /nodes localhost           |
   | 再書き込みと          | rewrite=true downgrade=true firmware=true      |
   | ダウングレード        | software=false                                 |
   |-----------------------+------------------------------------------------|
   | 両方の再書き込みと    | hpsum setattributes /nodes localhost           |
   | ダウングレード        | rewrite=true downgrade=true firmware=true      |
   |                       | software=true                                  |
   +------------------------------------------------------------------------+

  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 | 適用するセッション属性を指定します。       |
   |                           | セッション属性は全体に適用されます。       |
   +------------------------------------------------------------------------+

  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
