﻿1 GetAttributes

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

   Enables you to show attributes for parts of the current session.

   getattributes enables you to show any of the attributes stored either for
   the session and node. You can change attributes using the SetAttributtes
   command. If you do not supply nodes, they default to all selected in the
   current session.

  1.1 Syntax

   hpsum[.cmd] getattributes [--session] [--nodes [nodelist]]

  1.2 Parameters

   The getattributes command provides the following options:

   +------------------------------------------------------------------------+
   | Option                | Description                                    |
   |-----------------------+------------------------------------------------|
   | HPSUM[.cmd]           | The HP SUM script initiates this action.       |
   |-----------------------+------------------------------------------------|
   | getattributes         | The command to show attributes for this HP SUM |
   |                       | session.                                       |
   |-----------------------+------------------------------------------------|
   | --session             | Retrieves attributes of the session.           |
   |-----------------------+------------------------------------------------|
   |                       | A list of the nodes for which to get the       |
   | --nodes(n) [nodelist] | attributes. If you do not specify a nodelist,  |
   |                       | all nodes in the session are shown.            |
   +------------------------------------------------------------------------+

  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 getattributes /nodes 213 211

    Linus/HP-UX sample command line

   $ hpsum getattributes --session --nodes 213 211
