 	 
add
Description

Adds baselines or nodes to the current working set for the current session.

Syntax

smartupdate add --nodes

smartupdate add --baselines

Parameters

Parameters given immediately after the /nodes command, but used before a node, are considered global parameters. These parameters apply to all the nodes specified in the command. For example:

smartupdate add /nodes user=user1 password=password1 type=linux 192.168.1.2 192.168.1.10

The parameters user, password, and type apply to both nodes.

Parameters used after a specified node apply to that node only.

smartupdate add /nodes 192.168.1.15 user=user2 password=password2 type=linux 192.168.1.17 user=user3 password=password3 type=windows

The parameters user2, password2, and linux apply to node 192.168.1.15. The parameters user3, password3, and windows apply to 192.168.1.17.

Node parameters
--nodes <nodeslist>
Object to perform the add operation. The items in the list should be delimited by spaces. You can specify the user and password globally for all nodes.

domain_name: localhost

ip: 127.0.0.1

ipv6: ::1

Add either nodes or baselines. Do not add both in the same command.

If you are adding a VC node, use the IP address of the primary Enet module. All VC modules installed, including FC modules, are updated through the primary Enet module.

type = <node type>
This parameter defines the node type. Use this as both a local and global parameter. SUM supports node types:

windows
linux
ilo
virtual_connect
Use the IP address of a primary Enet module. VC nodes require oa_username and oa_password.If you add a VC node, include the following attributes: oa_username and oa_password.

oa
vmware
sas_switch
fc_switch
sdx
unknown
sdflex
skip_prereqs = <true|false>
By default SUM installs the CHIF driver on Windows nodes. Use the true option to skip installing the CHIF driver.

user=<user_name>
Example: user=john_doe@example.com

This provides the username credentials for the node. If you do not enter this on the command line, SUM prompts for the username.

Use this as both local and global parameters.

If the node is a Linux node and part of a Windows domain, use the following format for the username.

<domain>\<username>

password=<password>
Example: password=userpassword

The user password credentials for the node. If you do not enter this on the command line, SUM prompts for the password.

Use this as both local and global parameters.

SUM supports Windows domains accounts for user credentials.

ilo_username=<ilo username>
Use this parameter to connect to iLO from the host OS when the iLO of server has been configured in High Security mode. You must provide iLO Administrator credentials. This parameter is valid only for Windows, Linux, and Unknown node types. Make sure that the iLO Administrator account has Configure iLO Settings permissions in the iLO.

ilo_password=<ilo password>
The password for the user associated with the ilo_username parameter.

su_user=<super_userID>
Example: user=su_john_doe@example.com

The username for the super user.

su_password=<super_user_password>
Example: password=su_userpassword

The password for the super user.

use_sudo
Valid options: TRUE, FALSE

Use credentials as sudo credentials.

Potential options:

true
false
vcenter_host
The address of the VMware vCenter when VMware is in lock-down mode. Use these parameters along with vcenter_username and vcenter_password to establish a connection with a VMware host that is in lock-down mode.

vcenter_username
The user account to establish a connection with a VMware host.

vcenter_password
The account password to establish a connection with a VMware host.

use_sshkey
Potential options:

true
false
Linux nodes only. Use privatekeyfile and passphrase (optional) with this command.

privatekeyfile=<PEM_file_absolute_path>
Enter the absolute address for the private key. The private key must be in PEM format.

Use this as both local and global parameters.

passphrase=<passphrase>
(Optional) Enter the passphrase for the private key.

Use this as both local and global parameters.

override_connection
Potential options:

true

false

You can also provide this parameter as a global option by providing the parameter before providing node details.

Baseline parameters
--baselines <directory_path>
Use this parameter to add local baselines by specifying the directory. If you are adding an HTTP baseline, use the save_location parameter.

save_location=<working_location>
Directory where you want to save HTTP baselines you download.

type=<baseline_type>
This parameter defines the baseline type. SUM supports baseline types:

http

unc (Windows only)

NOTE:
Make sure that the UNC directory is not open in the localhost system.

unc_username=<unc_username>
Enter the username for the UNC directory path. Valid for Windows only.

unc_password=<unc_password>
Enter the password for the UNC directory path. Valid for Windows only.

bundle=<bundle_name>
Enter the bundle file name you want to add. Use the command getbaselines /list to display the list of bundle file names. For example, bundle=spp.2014.02.0.B.

filter_os=<os_filter>
(HTTP baselines only) This attribute allows you to filter the components SUM downloads based on operating system. The valid options are:

windows

linux

vmware

Restrictions

Do not add a baseline and node in the same command. Use two separate commands.

SUM interactive CLI mode does not automatically add nodes or baselines. The interactive CLI mode does not automatically add associated nodes. Use GUI mode to add associated devices.

Usage

smartupdate add [--nodes n1 [type=<node_type>] [user=<username>] [password=<userpassword>] [su_user=<su_user>] [su_password=<suuser_password>] [use_sudo=true/false]

--baselines b1 [save_location=<directory>] [type=<baseline_type]

Windows usage

Windows sample command line

C:\>smartupdate add /nodes 10.0.1.15 type=windows

C:\>smartupdate add /baselines type=http save_location=c:\temp\spp bundle=http://10.1.2.3/spp/hp/swpackages/bp002524.xml filter_os=linux

C:\>smartupdate add /nodes type=vc 10.0.1.16 user=Administrator password=12iso*help oa_username=Administrator oa_password=12iso*help

C:\>smartupdate add /nodes 10.0.1.4 type=vmware vcenter_host=10.0.1.20 vcenter_username=Administrator vcenter_password=password

C:\>smartupdate add /nodes 10.1.2.3 type=virtual_connect oa_username=Administrator oa_password=mypassword1

Linux usage

$ ./smartupdate add --nodes 10.0.1.16 type=linux

$ ./smartupdate add --baselines "/SPP/" "/tmp/myrepos/"

$ ./smartupdate add --baselines type=http save_location=c:\temp\spp bundle=http://10.1.2.3/spp/hpe/swpackages/bp002524.xml filter_os=linux

$ ./smartupdate add --nodes type=vc 10.0.1.18 user=Administrator password=12iso*help oa_username=Administrator oa_password=12iso*help

$ ./smartupdate add --nodes 10.0.1.4 type=vmware vcenter_host=10.0.1.20 vcenter_username=Administrator vcenter_password=password

$ ./smartupdate add --nodes 10.1.2.3 type=virtual_connect oa_username=Administrator oa_password=mypassword1

NOTE:
If the node type is Linux, you can use su_user and su_password, or use use_sudo.

For example:

smartupdate add /nodes 192.168.1.1 type=Linux user=user password=password su_user=user1 su_password=password1

smartupdate add /nodes 192.168.1.1 type=Linux user=user password=password use_sudo=true

 	 	 