﻿1 GenerateReports

   generatereports enables you to generate reports for the HP SUM session.
   These reports include inventory, node firmware, components available for
   install to a node, failed dependency details, and installed details. The
   output defaults to attributes values and the type of report to all
   available.

  1.1 Syntax

   hpsum generatereports [--type inventory | firmware | installables |
   faileddep | installed | combined] [--output html | xml | csv] [--nodes
   [nodelist]] [--baselines [baselinelist]]

  1.2 Parameters

   The generatereports command provides the following options:

   +------------------------------------------------------------------------+
   | Parameter                     | Description                            |
   |-------------------------------+----------------------------------------|
   | hpsum                         | The HP SUM script initiates this       |
   |                               | action.                                |
   |-------------------------------+----------------------------------------|
   | generatereports               | The command to generate reports within |
   |                               | the HP SUM session.                    |
   |-------------------------------+----------------------------------------|
   |                               | If you specify the type parameter, it  |
   |                               | must be one of the following:          |
   |                               |   o Inventory                          |
   |                               |                                        |
   |                               |   o Firmware                           |
   |                               |                                        |
   | --type inventory | firmware | |   o Installables                       |
   | installables | faileddep |    |                                        |
   | installed | combined          |   o Faileddep                          |
   |                               |                                        |
   |                               |   o Installed                          |
   |                               |                                        |
   |                               |   o Combined                           |
   |                               |                                        |
   |                               | If you do not provide a type, all      |
   |                               | types possible are generated.          |
   |-------------------------------+----------------------------------------|
   |                               | Output format (defaults to attributes  |
   | --output html | xml | csv     | value). If you do not provide an       |
   |                               | output type, all formats are produced. |
   |-------------------------------+----------------------------------------|
   |                               | HP SUM generates a single report with  |
   |                               | details for all the nodes in the       |
   | --nodes [nodelist]            | list.If you do not specify a list of   |
   |                               | nodes, all nodes in the current        |
   |                               | session are selected.                  |
   |-------------------------------+----------------------------------------|
   |                               | List of baselines to include in the    |
   | --baselines [baselinelist]    | reports. If you do not specify a list  |
   |                               | of baselines, all baselines in the     |
   |                               | current session are selected.          |
   +------------------------------------------------------------------------+

  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 generatereports /type inventory /nodes localhost

    Linux/HP-UX sample command line

   $ ./hpsum generatereports --type faileddep --nodes 10.7.85.0 10.7.85.128
