Syntax, Parameters, Return codes – HP Smart Update Manager User Manual

Page 120: Example, Setattributtes, Syntax parameters return codes example

Advertising
background image

Syntax

Authenticating with credentials for the first time:

hpsum login [--username rono --password pwd123 --port 63001 --ssl_port

63002]

Authenticating with current credentials:

hpsum login

Parameters

Description

Option

The HP SUM script initiates this action.

hpsum

The command to set credentials for the HP SUM session.

login

Optional parameters

username, password

Return codes

Text

Linux

Windows

Return code

The command was successful.

0

0

SUCCESS_NO_REBOOT

A general failure occurred. For details, see the logs.

255

-1

FAILURE_GENERAL

A bad input parameter was encountered. For details, see
the logs.

254

-2

FAILURE_BAD_PARM

The command failed. For details, see the logs.

252

-4

FAILURE_COMMAND_FAILED

Example

Windows sample command line

C:\> hpsum login /username rono /password pwd123 /ssl_port 9091

Linux/HP-UX sample command line

$ hpsum login --username rono --password pwd123 --ssl_port 9091

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).

Syntax

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

120 Console Commands

Advertising