﻿1 GetComponentLogs

   getcomponentlogs enables you to view the component logs for a node.

  1.1 Syntax

   hpsum getcomponentlogs [--nodes [<nodelist>]] [--component
   <componentname>]

  1.2 Parameters

   The getcomponentlogs command provides the following options:

   +------------------------------------------------------------------------+
   | Parameter                   | Description                              |
   |-----------------------------+------------------------------------------|
   | hpsum                       | The HP SUM script initiates this action. |
   |-----------------------------+------------------------------------------|
   | getcomponentlogs            | The command to get the logs from the HP  |
   |                             | SUM engine.                              |
   |-----------------------------+------------------------------------------|
   |                             | Nodes for this request. If you do not    |
   | --nodes [<nodelist>]        | provide a nodelist, all nodes in the     |
   |                             | session are used.                        |
   |-----------------------------+------------------------------------------|
   |                             | The name of the component that HP SUM    |
   |                             | will display the log. If you use this    |
   | --component <componentname> | parameter, you must enter a component    |
   |                             | name. If you do not specify a component, |
   |                             | HP SUM generates logs for all            |
   |                             | components.                              |
   +------------------------------------------------------------------------+

  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 getcomponentlogs /nodes localhost

    Linux/HP-UX sample command line

   $ hpsum getcomponentlogs --nodes 16.1.1.105 --component cp020024.exe
