﻿1 GetNeededUpdates

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

   getneededupdatesを使用すると、コマンドの一部として渡される現在の選択または
   項目のいずれかの状態に基づいて、必要なアップデートの詳細を表示できます。
   ノードを指定しない場合、コマンドはセッションで現在選択されているノードを使
   用します。

  1.1 構文

   hpsum getneededupdates [--nodes [nodelist]]

  1.2 パラメーター

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

   +------------------------------------------------------------------------+
   | オプション         | 説明                                              |
   |--------------------+---------------------------------------------------|
   | hpsum              | HP SUMスクリプトがこのアクションを開始します。    |
   |--------------------+---------------------------------------------------|
   | getneededupdates   | 必要なアップデートを表示するコマンド。            |
   |--------------------+---------------------------------------------------|
   |                    | 必要なアップデート操作のチェックを実行するノード  |
   | --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 getneededupdates /nodes localhost

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

   $ hpsum getneededupdates --nodes localhost
