add

 
说明 

将基准或节点添加到当前会话的当前工作集中。

语法 

smartupdate add --nodes 

smartupdate add --baselines 

参数 

在紧靠 /nodes 命令后面提供的参数(但在节点前面使用)被视为全局参数。这些参数适用于在命令中指定的所有节点。例如:

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

user、password 和 type 参数适用于两个节点。

在指定的节点后面使用的参数仅适用于该节点。

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

user2、password2 和 linux 参数适用于节点 192.168.1.15。user3、password3 和 windows 参数适用于 192.168.1.17。
节点参数 --nodes <nodeslist>
执行添加操作的对象。列表中的术语应该以空格分隔。可以为所有节点全局指定用户和密码。

domain_name: localhost 

ip: 127.0.0.1 

ipv6: ::1 

添加节点或基准。不要在同一个命令中同时添加二者。

如果要添加 VC 节点,请使用主 Enet 模块的 IP 地址。将通过主 Enet 模块更新安装的所有 VC 模块,包括 FC 模块。
type = <node type>
该参数定义了节点类型。请将其作为本地和全局参数。SUM 支持以下节点类型:
•windows
•linux
•ilo
•virtual_connect
使用主 Enet 模块的 IP 地址。VC 节点需要使用 oa_username 和 oa_password。如果添加 VC 节点,请包含以下属性:oa_username 和 oa_password。

•oa
•vmware
•sas_switch
•fc_switch
•sdx
•unknown
•sdflex
skip_prereqs = <true|false>
默认情况下,SUM 在 Windows 节点上安装 CHIF 驱动程序。可以使用 true 选项跳过 CHIF 驱动程序安装。
user=<user_name>
示例:user=john_doe@example.com 

它为节点提供了用户名凭据。如果在命令行中未输入该凭据,SUM 将提示您输入用户名。

请将其作为本地和全局参数。

如果节点是 Linux 节点和 Windows 域的一部分,请在用户名中使用以下格式。

<domain>\<username> 
password=<password>
示例:password=userpassword 

节点的用户密码凭据。如果在命令行中未输入该凭据,SUM 将提示您输入密码。

请将其作为本地和全局参数。

SUM 支持将 Windows 域帐户作为用户凭据。
ilo_username=<ilo username>
当在高安全模式下配置服务器的 iLO 时,使用此参数从主机操作系统连接到 iLO。您必须提供 iLO 管理员凭据。此参数仅对 Windows、 Linux 和未知节点类型有效。确保 iLO 管理员帐户在 iLO 中具有配置 iLO 设置权限。
ilo_password=<ilo password>
与 ilo_username 参数关联的用户的密码。
su_user=<super_userID>
示例:user=su_john_doe@example.com 

超级用户的用户名。
su_password=<super_user_password>
示例:password=su_userpassword 

超级用户的密码。
use_sudo
有效的选项:TRUE、FALSE 

将凭据作为 sudo 凭据。

可能的选项:
•true
•false
vcenter_host
在 VMware 处于锁定模式时 VMware vCenter 的地址。可以将这些参数与 vcenter_username 和 vcenter_password 一起使用,以建立到处于锁定模式的 VMware 主机的连接。
vcenter_username
用于建立到 VMware 主机的连接的用户帐户。
vcenter_password
用于建立到 VMware 主机的连接的帐户密码。
use_sshkey
可能的选项:
•true
•false

仅限 Linux 节点。请在该命令中使用 privatekeyfile 和 passphrase(可选)。
privatekeyfile=<PEM_file_absolute_path>
输入私钥的绝对地址。私钥必须为 PEM 格式。

请将其作为本地和全局参数。
passphrase=<passphrase>
(可选)输入私钥的通行短语。

请将其作为本地和全局参数。
基准参数 --baselines <directory_path>
可以使用该参数通过指定目录来添加本地基准。如果要添加 HTTP 基准,请使用 save_location 参数。
save_location=<working_location>
要保存下载的 HTTP 基准的目录。
type=<baseline_type>
该参数定义了基准类型。SUM 支持以下基准类型:

http 

unc(仅限 Windows) 



注意: 
请确保 UNC 目录未在本地主机系统中打开。
unc_username=<unc_username>
输入 UNC 目录路径的用户名。仅适用于 Windows。
unc_password=<unc_password>
输入 UNC 目录路径的密码。仅适用于 Windows。
bundle=<bundle_name>
输入要添加的软件包文件名。请使用 getbaselines /list 命令显示软件包文件名列表。例如,bundle=spp.2014.02.0.B。
filter_os=<os_filter>
(仅限 HTTP 基准)该属性可用于过滤 SUM 根据操作系统下载的组件。有效的选项包括:

Windows 

Linux 

vmware 

限制 

•不要使用同一命令添加基准和节点。使用两个单独的命令。


•SUM 交互式 CLI 模式不会自动添加节点或基准。交互式 CLI 模式不会自动添加相关节点。使用 GUI 模式添加关联装置。


用法 

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 用法 

Windows 示例命令行 

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 用法 

$ ./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 



注意: 
如果节点类型为 Linux,您可以使用 su_user 和 su_password 或使用 use_sudo。

例如:

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