As an alternative to using the service deployment wizard, you can use CLI commands to deploy service instances onto all instances of the system.
These procedures require local access or the ability to establish an SSH session to the system.
To deploy the HCP for cloud scale system:
- Log in to an HCP for cloud scale instance.
- Go to the install_path/cli/admin folder.
cd /opt/hcpcs/cli/admin
- Use the command setupAdminUser to set the password for the main admin account:
./admincli -k false -c setupAdminUser --pm-password passwordImportant: Do not lose or forget this password.
- Use the command editSecuritySettings to set the cluster host name.
./admincli -c editSecuritySettings --ssm-cluster-hostname=cluster_name -u admin -p passwordType a lowercase ASCII FQDN.Omitting this step can cause links in the System Management application to function incorrectly.
- Use the command queryServices to display the default configuration values, and save the output to a file:
./admincli -c queryServices --sqrm-is-recommend true --sqrm-requested-details serviceInstances, config --sqrm-service-types product -u admin -p password > /file_path/config_filename.txtAn example of a configuration file location and name is /tmp/default_config.txt.
- Optional: If needed, use a text editor to modify the configuration file config_filename.txt.
- Use the command updateServiceConfig to start deployment using the values in the configuration file:
./admincli -c updateServiceConfig --service-update-model /file_path/config_filename.txt -u admin -p passwordNote: If a port is already in use this step fails and an error message is displayed listing the ports in use. Edit the configuration file to change the port and repeat this step.
- Use the command listScaleTasks to monitor the progress of deployment until all services are deployed "status" is "Complete"):
./admincli -c listScaleTasks -u admin -p passwordTip: You can focus on the status messages with a command such as this:
./admincli -c listScaleTasks -u admin -p password | grep status
Note: If this step fails, log in to the HCP for cloud scale system using a browser; the service deployment wizard is displayed. Click Retry. - Use the command setupComplete to finalize deployment:
./admincli -c setupComplete -u admin -p passwordNote: If this step fails with the message Must be in state "setup" to complete setup, wait for a few seconds and repeat this step.