1 Configure The configure command enables you to export, import, and display component configuration settings in a baseline. 1.1 Syntax hpsum configure --export baseline= dir= [component= includeCredentials=true|false>] hpsum configure --import baseline= dir= [component=] hpsum configure --show baseline= [component= 1.2 Parameters The configure command provides the following options: +------------------------------------------------------------------------+ | Parameter | Description | |---------------------------------+--------------------------------------| | hpsum | The HP SUM script initiates this | | | action. | |---------------------------------+--------------------------------------| | configure | The command to configure components. | |---------------------------------+--------------------------------------| | | This parameter exports component | | /export | configuration to a specified | | | directory. | |---------------------------------+--------------------------------------| | | This parameter imports component | | /import | configuration from a specified | | | directory. | |---------------------------------+--------------------------------------| | | This parameter displays the | | /show | component configuration options for | | | the components in a baseline. | |---------------------------------+--------------------------------------| | | Use this parameter to specify the | | baseline= | baseline that contains the component | | | you want to import, export, or show. | |---------------------------------+--------------------------------------| | | Use this parameter to specify the | | dir= | directory where you want to export | | | or from where you want to import | | | component configuration settings. | |---------------------------------+--------------------------------------| | | This is an optional parameter. This | | | specifies the name of the component | | | that you want to import, export, or | | component= | show. If you do not specify a | | | component, HP SUM exports, imports, | | | or shows all components in a | | | baseline. | |---------------------------------+--------------------------------------| | | This is an optional parameter. If | | | you select true, HP SUM includes the | | includeCredentials= | user credentials when it exports | | | configuration settings. The default | | | for this parameter is true. | +------------------------------------------------------------------------+ 1.3 Return codes +------------------------------------------------------------------------+ | Return code | Windows | Linux | Text | |-------------+---------+-------+----------------------------------------| | | | | This returns if HP SUM successfully | | Success | 0 | 0 | exports, imports, or displays the | | | | | component configuration. | |-------------+---------+-------+----------------------------------------| | | | | This returns if HP SUM failed to | | Failure | -1 | 255 | export, import, or display the | | | | | component configuration. | +------------------------------------------------------------------------+ 1.4 Example Windows C:\>hpsum configure /import baseline=C:\spp.2012.01 dir=C:\Components In this example, all the component configurations present under C:\Components directory for C:\spp.2012.01 baseline will be loaded into HP SUM. C:\>hpsum configure /import baseline=C:\spp.2012.01 dir=C:\Components\cp022423_conf component=cp022423.exe In this example, HP SUM only imports the configuration for the component cp022423.exe of the baseline C:\spp.2012.01 in the directory C:\Components. C:\>hpsum configure /show baseline=C:\spp.2012.01 In this example, HP SUM displays all the component configurations from the baseline C:\spp.2012.01. Linux $ ./hpsum configure --export baseline=/root/SPP.2012.01 dir=/root/Components In this example, HP SUM exports all the component configurations from the baseline /root/SPP.2012.01 to the directory /root/Components. $ ./hpsum configure --export baseline=/root/SPP.2012.01 dir=/root/Components component=hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm includeCredentials=false In this example, HP SUM only exports the configuration for the component hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm from the baseline /root/SPP.2012.01 present in the directory /root/Components. HP SUM does not export credentials in this example. $ ./hpsum configure --show baseline=/root/SPP.2012.01 component=hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm In this example, HP SUM displays only the configuration for the component hp-snmp-agents-10.10-2657.7.rhel6.i686.rpm from the baseline /root/SPP.2012.01.