configure

说明 

用于导出、导入和显示基准中的组件配置设置。

语法 

smartupdate configure --export baseline=<baselinename> dir=<directoryname> [component=<componentname> includeCredentials=true|false>] 

smartupdate configure --import baseline=<baselinename> dir=<directoryname> [component=<componentname>] 

smartupdate configure --show baseline=<baselinename> [component=<componentname> 

参数/选项/标记/字符串/...
/export
该参数将组件配置导出到指定的目录中。
/import
该参数从指定的目录中导入组件配置。
/show
该参数显示基准中的组件的组件配置选项。
baseline=<baselinename>
可以使用该参数指定包含要导入、导出或显示的组件的基准。
dir=<directoryname>
可以使用该参数指定要在其中导出或导入组件配置设置的目录。
component=<componentname>
这是一个可选参数。该参数指定要导入、导出或显示的组件名称。如果未指定组件,SUM 将导出、导入或显示基准中的所有组件。
includeCredentials=<true|false>
这是一个可选参数。如果选择 true,SUM 将在导出配置设置时包括用户凭据。该参数的默认值为 true。

Windows 用法 

C:\>smartupdate configure /import baseline=C:\spp.2012.01 dir=C:\Components 

在该示例中,C:\Components 目录中的 C:\spp.2012.01 基准的所有组件配置将加载到 SUM 中。

C:\>smartupdate configure /import baseline=C:\spp.2012.01 dir=C:\Components\cp022423_conf component=cp022423.exe 

在该示例中,SUM 仅导入 C:\Components 目录中的 C:\spp.2012.01 基准的 cp022423.exe 组件的配置。

C:\>smartupdate configure /show baseline=C:\spp.2012.01 

在该示例中,SUM 显示 C:\spp.2012.01 基准中的所有组件配置。

Linux 用法 

$ ./smartupdate configure --export baseline=/root/SPP.2012.01 dir=/root/Components 

在该示例中,SUM 将 /root/SPP.2012.01 基准中的所有组件配置导出到 /root/Components 目录中。

$ ./smartupdate configure --export baseline=/root/SPP.2012.01 dir=/root/Components component=hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm includeCredentials=false 

在该示例中,SUM 仅导出 /root/Components 目录中的 /root/SPP.2012.01 基准中的 hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm 组件的配置。SUM不会导出凭据。

$ ./smartupdate configure --show baseline=/root/SPP.2012.01 component=hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm 

在该示例中,SUM 仅显示 /root/SPP.2012.01 基准中的 hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm 组件的配置。