﻿1 GetAttributes

   getattributes enables you to view any of the attributes for the selected
   node. You can change attributes using the SetAttributes command.

  1.1 Syntax

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

  1.2 Parameters

   The getattributes command provides the following options:

   +------------------------------------------------------------------------+
   | Parameter            | Description                                     |
   |----------------------+-------------------------------------------------|
   | HPSUM                | The HP SUM script initiates this action.        |
   |----------------------+-------------------------------------------------|
   | getattributes        | The command to show attributes for the selected |
   |                      | nodes.                                          |
   |----------------------+-------------------------------------------------|
   |                      | A list of the nodes for which to get the        |
   | --nodes [<nodelist>] | attributes. If you do not specify a nodelist,   |
   |                      | all nodes in the session are shown.             |
   |----------------------+-------------------------------------------------|
   | --session            | Lists the attributes available in the HP SUM    |
   |                      | session.                                        |
   |----------------------+-------------------------------------------------|
   | --report_dir         | An optional parameter that allows you to        |
   |                      | specify a directory where HP SUM saves reports. |
   +------------------------------------------------------------------------+

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

    Linus/HP-UX sample command line

   $ hpsum getattributes --nodes localhost
