﻿1 GetCurrentlyInstalledVersions

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

   Enables you to get the currently installed versions of items in the HP SUM
   session.

   getcurrentlyinstalledversions enables you to get the versions of all
   baselines in this session.

  1.1 Syntax

   hpsum [.cmd] getcurrentlyinstalledversions [--nodes [nodelist]]

  1.2 Parameters

   The getcurrentlyinstalledversions command provides the following options:

   +------------------------------------------------------------------------+
   | Option                        | Description                            |
   |-------------------------------+----------------------------------------|
   | hpsum [.sh|.cmd]              | The HP SUM script initiates this       |
   |                               | action.                                |
   |-------------------------------+----------------------------------------|
   |                               | The command to get the currently       |
   | getcurrentlyinstalledversions | installed update version of installed  |
   |                               | items.                                 |
   |-------------------------------+----------------------------------------|
   |                               | A list of the nodes to get the         |
   | --nodes(n) [nodelist]         | installed versions. If you do not      |
   |                               | provide a nodelist, all nodes in the   |
   |                               | session are used.                      |
   +------------------------------------------------------------------------+

  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 getcurrentlyinstalledversions /nodes mach.name ipaddr2
   ipaddr3

    Linux/HP-UX sample command line

   $ hpsum getcurrentlyinstalledversions --baseline "SPP2012.X"
