﻿1 GetNeededUpdates

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

   Enables you to show which updates are needed based on the current session
   or supplied baselines.

   getneededupdates enables you to see the details of needed updates based on
   either the state of the current selections or items passed in as part of
   the command. If a node has a setting for a current baseline, then you do
   not need to specify the baseline in the command. If you do not specify any
   nodes, the command uses those currently selected in the session.

  1.1 Syntax

   hpsum[.cmd] getneededupdates [--nodes [nodelist]] [--baseline b1]

  1.2 Parameters

   The getneededupdates command provides the following options:

   +------------------------------------------------------------------------+
   | Option                    | Description                                |
   |---------------------------+--------------------------------------------|
   | hpsum[.cmd]               | The HP SUM script initiates this action.   |
   |---------------------------+--------------------------------------------|
   | getneededupdates          | The command shows needed updates.          |
   |---------------------------+--------------------------------------------|
   |                           | A list of the nodes on which to perform    |
   | --nodes [nodelist]        | the check for needed updates operation. If |
   |                           | you do not specify a nodelist, all nodes   |
   |                           | in the session are used.                   |
   |---------------------------+--------------------------------------------|
   | --baseline [baselineList] | Baseline location to use for performing    |
   |                           | the operation.                             |
   +------------------------------------------------------------------------+

  1.3 Return codes

   +------------------------------------------------------------------------+
   | Return Code            | Windows | Linux | Text                        |
   |------------------------+---------+-------+-----------------------------|
   | 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 Example

    Windows sample command line

   C:\> hpsum.cmd getneededupdates /nodes t1 /baseline 123

    Linux/HP-UX sample command line

   $ hpsum getneededupdates --nodes t1 t2 t3
