﻿1 Login

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

   The Login command enables you to set the credentials used for the current
   session.

   Authenticating with credentials for the first time.

   Offline mode with no credentials - In this case you do not need the
   credentials because there is no user interaction. The command creates a
   session if the IP address of the request is the same as the hpsum_server.
   This is an anonymous session.

  1.1 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

  1.2 Parameters

   +------------------------------------------------------------------------+
   | Option             | Description                                       |
   |--------------------+---------------------------------------------------|
   | hpsum              | The HP SUM script initiates this action.          |
   |--------------------+---------------------------------------------------|
   | login              | The command to set credentials for the HP SUM     |
   |                    | session.                                          |
   |--------------------+---------------------------------------------------|
   | username, password | Optional parameters                               |
   +------------------------------------------------------------------------+

  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 login /username rono /password pwd123 /ssl_port 9091

    Linux/HP-UX sample command line

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