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 [Note] Note: HP SUM does not automatically add nodes or baselines. Add the nodes and baselines you want to use. 1.1 Syntax hpsum add [--nodes [type=ilo|ilofederation|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] [type=n1_nodetype]] n2...] [Note] Note: Do not assign baselines in the same command as nodes. Use two separate commands. hpsum add [--baselines b1 [user=b1_user password=b1t_password] b2...] [Note] Note: If the node type is Linux or HP-UX, 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 | 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 | and password | | type=ilo|ilofederation|vc|oa|windows|linux| | globally for all | | vmware|hpux|ipdu|sas|fchba_switch|superdome_2| | nodes. | | unknown user=userstring password=passstringnode1 | domain_name: | | node2 | localhostip: | | | 127.0.0.1ipv6: ::1 | | | o domain_name: | | | localhost | | | | | | o ip: 127.0.0.1 | | | | | | o ipv6: ::1 | |---------------------------------------------------+--------------------| | --baselines | Object to perform | | | the add operating | | | for http baseline. | +------------------------------------------------------------------------+ 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 add /nodes 10.0.1.15 type=windows C:\>hpsum add /baselines "/SPP/" "/tmp/myrepos/" Linux/HP-UX sample command line $ hpsum add --baselines 10.0.1.16 type=linux $ hpsum add --baselines "/SPP/" "/tmp/myrepos/"