﻿1 setattributes

   Enables you to change the attributes of an HP SUM node or session. The
   setattributes command might return an invalid parameter notice if the
   permissions are not correct, or if either the parameter is not part of the
   requested set or if the value is not allowed.

   To view a list of attributes you can change, use the command
   getattributes. The available attributes change based on the nodes and
   baselines added in each session. For example:

   hpsum /getattributes /session (Windows)

   hpsum /getattributes /nodes (Windows)

  Syntax

   hpsum setattributes --nodes [<nodelist>] attribute1=value1
   attribute2=value2

   hpsum setattributes --session attribute1=value1

   Assign session attributes in the interactive CLI:

   hpsum setattributes --session <attribute>=<value> (Linux)

   hpsum setattributes /session <attribute>=<value> (Windows)

  Parameters

   --nodes [<nodelist>] attribute=value

           Specify the nodes and attributes that you want to apply to nodes.

   --session attribute=value

           Specify the session attribute you want to apply. Session
           attributes are global.

  Session parameter options

   auto_save_session

           [true|false]

   auto_save_session_time

           <integer>-The time in minutes. The default is 15 minutes.

   engine_mode

           [debug|release]

   software

           [true|false]-This defines the option for all nodes added in this
           session.

   firmware

           [true|false]-This defines the option for all nodes added in this
           session.

   rewrite

           [true|false]-This defines the option for all nodes added in this
           session.

           HP SUM does not rewrite components when FIPS mode is enabled.

   downgrade

           [true|false]-This defines the option for all nodes added in this
           session.

           HP SUM does not downgrade components when FIPS mode is enabled.

   language

           [en|ja|cn]

   verbosity

           [normal|verbose|veryverbose]

              o normal-The default amount of information provided by HP SUM
                about a deployment.

              o verbose-Provides more details about a deployment, if
                information is available.

              o veryverbose-Provides more details about a deployment, if
                information is available.

   verbose

           [true|false]

           hpsum setattributes /nodes verbose=true

           Determines the amount of details HP SUM provides during
           deployment.

   report_dir

           [directory_path] - Directory path where you want HP SUM to save
           reports. For example: C:\hpsum_reports\.

   use_proxy_script -- No longer supported

           [true|false]

           The proxy settings are primarily used for downloading an HTTP or
           FTP baseline.

   proxy_url -- No longer supported

           <string> - Proxy server URL.

   proxy_ftp_port -- No longer supported

           <string> - Proxy server FTP port.

   proxy_script -- No longer supported

           <string> - Full path for the proxy script.

   proxy_username -- No longer supported

           <string> - Username for the proxy server.

   proxy_password -- No longer supported

           <string> - User's password for the proxy server.

   open_firewall

           [yes|no]

           Opens the required firewall ports to communicate with remote
           nodes.

   hp-passport-token=[token id] -- No longer supported

           Use a valid HP Passport Credentials API Token Authentication key
           to access baseline bundles available on hp.com.

  Node parameter options

   Use_vCenter

           For VMware nodes.

           [true|false]

           If you set this attribute as true, enter the following settings:

              o vcenter_host-IP address for the VMware vCenter node.

              o vcenter_username

                -Username for the VMware vCenter node.

              o vcenter_password

                -Password for the user connecting to the VMware vCenter node.

           These parameters can also be set as session attributes.

   encryption_key

           Option:

           String of a minimum of 8 characters.

           Required parameter for VC nodes with FIPS mode enabled. HP SUM
           uses the encryption key to encrypt the configuration saved to disk
           during the update process. This value is independent and does not
           need to match the VC password.
	
	   Restrictions:
	   
	   Only assign this parameter after completing a successful inventory
           on a VC node.

   ethactorder

           Possible value:

           ODDEVEN/PARALLEL/SERIAL/MANUAL, the default value is ODDEVEN.

           Use this command to determine VC-Enet module activation order.

   fcactorder

           Possible value:

           ODDEVEN/PARALLEL/SERIAL/MANUAL, the default value is ODDEVEN.

           Use this command to determine VC-FC activation order.

   ethactdelay

           Valid entries:

           0-60 minutes. The default is 0 minutes.

           Use this command to determine the time, in minutes, between
           activating or rebooting VC-Enet modules.

   fcactdelay

           Valid entries:

           0-60 minutes. The default is 0 minutes.

           Use this command to determine the time, in minutes, between
           activating or rebooting VC-FC modules.

   use_sshkey

           Linux nodes only

           Potential options:

              o true

              o false

           Other attributes:

              o privatekeyfile -Enter the address for the private key. The
                private key must be in PEM format.

              o passphrase - (Optional) Enter the passphrase for the private
                key.

           These parameters can also be set as session attributes.

   no_mgmt

           Potential options:

              o true

              o false

           No AMS, SNMP, or WBEM Providers are selected for deployment.

   use_snmp

           (Linux only)

           Potential options:

              o true

              o false

           HP SUM deploys SNMP components.

   use_wmi

           (Windows only)

           Potential options:

              o true

              o false

           HP SUM deploys WBEM Provider components.

   use_ams

           (Gen8 and later)

           Potential options:

              o true

              o false

           HP SUM deploys AMS components to both Windows and Linux systems.

   ignore_tpm

           Potential options:

           [true|false]

           This parameter tells HP SUM to ignore the TPM warning message when
           a TPM or TM module is installed on a server.

           This parameter is supported on server and iLO nodes.

   on_failed_dependency

           [omithost|omitcomponent|force]

              o omithost-HP SUM skips the host if it discovers a dependency
                failure. (Default)

              o omitcomponent-HP SUM skips components with failed
                dependencies. Other components on the node are deployed.

              o force-HP SUM forces the components with a failed dependency
                to deploy.

   ignore_warnings

           Potential options:

           [true|false]

           This parameter tells HP SUM to ignore warnings if it encounters
           any.

  Superdome 2/X parameter options

   update_type

           [ALL/COMPLEX/PARTITIONS]-This value tells HP SUM what to Superdome
           2/X nodes to update.

   device_list

           [devicelist]-This value tells HP SUM which Superdome 2/X nodes you
           want to update.

   reboot_list

           [rebootlist]-This value tells HP SUM which Superdome 2/X nodes to
           reboot after deployment.

  Moonshot parameter options

   You can set the following Moonshot-specific attributes for switch B if
   those credentials differ from switch A. These parameters can also be set
   as session attributes.

   switch_username

           [username]-User name for the Moonshot A switch.

   switch_password

           [password]-Password for the Moonshot A switch.

   switch_enable

           [enable_password]-Enablement password for the Moonshot A switch.

   switchb_username

           [username]-User name for the Moonshot B switch.

   switchb_password

           [password]-Password for the Moonshot B switch.

   switchb_enable

           [enable_password]-Enablement password for the Moonshot B switch.

  Downgrade and rewrite parameter options

   The following describes GUI downgrade and rewrite combinations and the
   corresponding interactive CLI parameters:

   Software only

           hpsum setattributes /nodes localhost rewrite=false downgrade=false
           firmware=false software=true

   Firmware only

           hpsum setattributes /nodes localhost rewrite=false downgrade=false
           firmware=true software=false

   Firmware and software

           hpsum setattributes /nodes localhost rewrite=false downgrade=false
           firmware=true software=true

   Downgrade software

           hpsum setattributes /nodes localhost rewrite=false downgrade=true
           firmware=false software=true

   Downgrade firmware

           hpsum setattributes /nodes localhost rewrite=false downgrade=true
           firmware=true software=false

   Downgrade both

           hpsum setattributes /nodes localhost rewrite=false downgrade=true
           firmware=true software=true

   Rewrite software

           hpsum setattributes /nodes localhost rewrite=true downgrade=false
           firmware=false software=true

   Rewrite firmware

           hpsum setattributes /nodes localhost rewrite=true downgrade=false
           firmware=true software=false

   Rewrite both

           hpsum setattributes /nodes localhost rewrite=true downgrade=false
           firmware=true software=true

   Rewrite and downgrade software

           hpsum setattributes /nodes localhost rewrite=true downgrade=true
           firmware=false software=true

   Rewrite and downgrade firmware

           hpsum setattributes /nodes localhost rewrite=true downgrade=true
           firmware=true software=false

   Rewrite and downgrade both

           hpsum setattributes /nodes localhost rewrite=true downgrade=true
           firmware=true software=true

  Windows usage

   C:\> hpsum setattributes /nodes 10.0.1.5 firmware=true software=true
   rewrite=true downgrade=true

   C:\> hpsum setattributes /nodes 10.0.1.5 update_type=all

   C:\> hpsum setattributes /session open_firewall=yes

   C:\> hpsum setattributes /nodes 10.0.0.4 use_vcenter=true
   vcenter_host=10.0.0.1 vcenter_username=test vcenter_password=password

  Linux usage

   $ ./hpsum setattributes --nodes 10.0.1.5 firmware=true software=true
   rewrite=true downgrade=true

   $ ./hpsum setattributes --nodes 10.0.1.5 update_type=all

   $ ./hpsum setattributes -session open_firewall=yes

   $ ./hpsum setattributes --nodes 10.0.0.5 use_vcenter=true
   vcenter_host=10.0.0.1 vcenter_username=test vcenter_password=password

  Return code

   SUCCESS_NO_REBOOT

           Windows: 0

           Linux: 0

           Text: The command was successful.

   FAILURE_GENERAL

           Windows: -1

           Linux: 255

           Text: A general failure occurred. For details, see the logs.

   FAILURE_BAD_PARM

           Windows: -2

           Linux: 254

           Text: A bad input parameter was encountered. For details, see the
           logs.

   FAILURE_COMMAND_FAILED

           Windows: -4

           Linux: 252

           Text: The command failed. For details, see the logs.
