﻿1 Add

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

   add enables you to add baselines or nodes to the current working set for
   the current session.

   You can supply passwords for all the nodes or baselines at the beginning
   of the list.

   For example, hpsum add --nodes --user userABC --password pwd123 x.x.x.x
   y.y.y.y

  1.1 Syntax

   hpsum[.cmd] add [--nodes
   [node_type=ilo|vc|oa|windows|linux|vmware|hpux|ipdu|sas|fchba_switch|superdome_2|unknown
   ] [user= default_user password=default_password] n1 [[user=n1_user
   password=n1_password] [node_type=n1_nodetype]] n2...] [--baselines
   [user=default_user password=default_password] b1 [user=b1_user
   password=b1t_password] b2...]

   [Note] Note:                                  
          If the node type is Linux, you can use su_user and su_password.
                                                 
          For example, 192.168.1.1 type=Linux user=user password=password
          su_user=user1 su_password=password1    

  1.2 Parameters

   The add command provides the following options:

   +------------------------------------------------------------------------+
   | Option                                           | Description         |
   |--------------------------------------------------+---------------------|
   |                                                  | The HP SUM script   |
   | hpsum[.cmd]                                      | initiates this      |
   |                                                  | action.             |
   |--------------------------------------------------+---------------------|
   |                                                  | The command to add  |
   | add                                              | nodes or baselines  |
   |                                                  | to the HP SUM       |
   |                                                  | session.            |
   |--------------------------------------------------+---------------------|
   |                                                  | Object to perform   |
   |                                                  | the add operation.  |
   |                                                  | The items in the    |
   |                                                  | list should be      |
   |                                                  | delimited by        |
   |                                                  | spaces. You can     |
   |                                                  | specify the user    |
   | --nodes(n) node_type=ilo|vc|oa|windows|linux|    | and password        |
   | vmware|hpux|ipdu|sas|fchba_switch|superdome_2|   | globally for all    |
   | unknown user=userstring password=passstringnode1 | nodes.              |
   | node2                                            | domain_name:        |
   |                                                  | localhostip:        |
   |                                                  | 127.0.0.1ipv6: ::1  |
   |                                                  |   o domain_name:    |
   |                                                  |     localhost       |
   |                                                  |                     |
   |                                                  |   o ip: 127.0.0.1   |
   |                                                  |                     |
   |                                                  |   o ipv6: ::1       |
   |--------------------------------------------------+---------------------|
   | --baselines(b) user=userstring                   |                     |
   | password=passstring b1 b2                        |                     |
   +------------------------------------------------------------------------+

  1.3 Return codes

   +------------------------------------------------------------------------+
   | Return Code            | Windows | Linux | Text                        |
   |------------------------+---------+-------+-----------------------------|
   | SUCCESS_NO_REBOOT      | 0       | 0     | The command was successful. |
   |------------------------+---------+-------+-----------------------------|
   |                        |         |       | The command completed       |
   |                        |         |       | successfully, but was not   |
   |                        |         |       | required or everything was  |
   | SUCCESS_NOT_REQUIRED   | 3       | 3     | already current.            |
   |                        |         |       |                             |
   |                        |         |       | [Note] Note:                |
   |                        |         |       |        The node or baseline |
   |                        |         |       |        already existed.     |
   |------------------------+---------+-------+-----------------------------|
   | 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      | 253   | The command failed. For     |
   |                        |         |       | details, see the logs.      |
   +------------------------------------------------------------------------+

  1.4 Example

    Windows sample command line

   C:\>hpsum.cmd add /baselines "C:\SPP\" "C:\temp\"

    Linux/HP-UX sample command line

   $ hpsum add --baselines "/SPP/" "/tmp/myrepos/"
