﻿1 SetAttributtes

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

   Enables you to change attributes for an HP SUM session, node, or baseline.
   For a full list of attributes you can change, run the getattributes
   command.

   setattributtes enables you to change the attributes of an HP SUM session,
   node, or baseline. This command might return an invalid parameter notice
   if the permissions are not correct, or if either the parameter is not part
   of the requested set or if the value is not allowed.

   You can set the following installation attributes: force, rewrite,
   downgrade, action, delay, and message (reboot message).

  1.1 Syntax

   hpsum setattributes [--nodes [N1 attribute=value] [N2 attribute=value]

  1.2 Parameters

   The setattributes command provides the following options:

   +------------------------------------------------------------------------+
   | Option             | Description                                       |
   |--------------------+---------------------------------------------------|
   | hpsum              | The HP SUM script initiates this action.          |
   |--------------------+---------------------------------------------------|
   | setattributes      | The command to set attributes pending HP SUM      |
   |                    | operations.                                       |
   |--------------------+---------------------------------------------------|
   | --nodes [nodelist] | Section for attributes that you want to apply to  |
   | [attribute=value]  | nodes. If you do not specify a nodelist, this     |
   |                    | sets the attribute for all nodes in the session.  |
   +------------------------------------------------------------------------+

  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 setattributes /nodes localhost force=true /nodes 16.1.1.105
   force=true rewrite=true

    Linux/HP-UX sample command line

   $ hpsum setattributes /nodes localhost force=true --nodes 16.1.1.105
   force=true rewrite=true
