Previous Topic: Install a CA User Activity Reporting Module Server SilentlyNext Topic: Set the Resource Settings


Invoke the OVF Tool Using Scripts

Note: You must install the OVF Tool 4.0.0 before you perform the silent installation. For more information about the OVF Tool, see the VMware's OVF Tool User Guide or www.vmware.com.

You can install multiple CA User Activity Reporting Module servers simultaneously by creating and running scripts containing the commands that invoke the OVF tool. You can use any scripting language to create scripts.

To invoke OVF tool using scripts

  1. Create a script for the invoking the OVF tool.
  2. Open the command prompt on the computer where VMware vSphere Client is installed.
  3. Navigate to the path where you stored your script.
  4. Run the script.

    The message Opening VI target is displayed. The deployment status of each CA User Activity Reporting Module server is displayed. If the installation is successful, a CA User Activity Reporting Module server is listed under the datastore you selected in the left pane.

Example 1: Batch Script for creating a primary CA User Activity Reporting Module server and a secondary CA User Activity Reporting Module server

REM Primary CA User Activity Reporting Module Server
ovftool -dm=thin --acceptAllEulas --name="example_primaryserver" --deploymentOption=medium --prop:ROOT_PASSWORD="example_password" --prop:LOCAL_REMOTE_EEM=Local --prop:REMOTE_EEM_LOCATION=none --prop:EEM_PASSWORD=calmr12 --prop:FIPS_MODE=Yes --prop:IP_ADDRESS=172.162.0.0 --prop:SUBNET_MASK=10.0.0.0 --prop:HOSTNAME="example_primary_server" --prop:DEFAULT_GATEWAY=198.168.0.0 --prop:DNS_SERVERS=198.168.10.20,198.168.10.25 --prop:DOMAIN_NAME=example.com --prop:TIMEZONE=Asia/Kolkata --prop:NTPLOCATION=198.168.10.30 "C:\Program Files\CA ELM\CA Enterprise Log Manager.ovf" "vi://administrator:password@examplevmwarehost/ELMQAvAppDatacenter/host/10.0.10.0"

REM Secondary CA User Activity Reporting Module Server
ovftool -dm=thin --acceptAllEulas --name="example_secondaryserver" --deploymentOption=medium --prop:ROOT_PASSWORD="example_password1" --prop:LOCAL_REMOTE_EEM="Remote" --prop:REMOTE_EEM_LOCATION="example_primaryserver" --prop:EEM_PASSWORD="calmr12" --prop:FIPS_MODE="Yes" --prop:IP_ADDRESS="172.168.10.10" --prop:SUBNET_MASK="10.0.10.10" --prop:HOSTNAME="example_secondary_server" --prop:DEFAULT_GATEWAY="198.168.10.30" --prop:DNS_SERVERS="198.168.20.20,198.168.20.25" --prop:DOMAIN_NAME="example.com" --prop:TIMEZONE="Asia/Kolkata" --prop:NTPLOCATION=198.168.10.30 "C:\Program Files\CA ELM\CA Enterprise Log Manager.ovf" "vi://administrator:password@examplevmwarehost/ELMQAvAppDatacenter/host/10.0.10.0"

Example 2: Batch Script for creating a management server and two collection servers

REM CA User Activity Reporting Module Management Server
ovftool -dm=thin --acceptAllEulas --name="example_managementserver" --deploymentOption=medium --prop:ROOT_PASSWORD="example_password" --prop:LOCAL_REMOTE_EEM=Local --prop:REMOTE_EEM_LOCATION=none --prop:EEM_PASSWORD=calmr12 --prop:FIPS_MODE=Yes --prop:IP_ADDRESS=172.168.0.0 --prop:SUBNET_MASK=10.0.0.0 --prop:HOSTNAME="example_management_server" --prop:DEFAULT_GATEWAY=198.168.0.0 --prop:DNS_SERVERS=198.168.10.20,198.168.10.25 --prop:DOMAIN_NAME=example.com --prop:TIMEZONE=Asia/Kolkata --prop:NTPLOCATION=198.168.10.30 "C:\Program Files\CA ELM\CA Enterprise Log Manager.ovf" "vi://administrator:password@examplevmwarehost/ELMQAvAppDatacenter/host/10.0.10.0"

REM CA User Activity Reporting Module Collection Server 1
ovftool -dm=thin --acceptAllEulas --name="example_collectionserver1" --deploymentOption=medium --prop:ROOT_PASSWORD="example_password1" --prop:LOCAL_REMOTE_EEM=Remote --prop:REMOTE_EEM_LOCATION="example_managementserver" --prop:EEM_PASSWORD=calmr12 --prop:FIPS_MODE=Yes --prop:IP_ADDRESS=172.168.10.10 --prop:SUBNET_MASK=10.0.10.10 --prop:HOSTNAME="example_collection_server1" --prop:DEFAULT_GATEWAY=198.168.10.30 --prop:DNS_SERVERS=198.168.20.20,198.168.20.25 --prop:DOMAIN_NAME=example.com --prop:TIMEZONE=Asia/Kolkata --prop:NTPLOCATION=198.168.10.30 "C:\Program Files\CA ELM\CA Enterprise Log Manager.ovf" "vi://administrator:password@examplevmwarehost/ELMQAvAppDatacenter/host/10.0.10.0"

REM CA User Activity Reporting Module Collection Server 2
ovftool -dm=thin --acceptAllEulas --name="example_collectionserver2" --deploymentOption=medium --prop:ROOT_PASSWORD="example_password2" --prop:LOCAL_REMOTE_EEM=Remote --prop:REMOTE_EEM_LOCATION="example_managementserver" --prop:EEM_PASSWORD=calmr12 --prop:FIPS_MODE=Yes --prop:IP_ADDRESS=172.168.10.30 --prop:SUBNET_MASK=10.0.10.40 --prop:HOSTNAME="example_collection_server2" --prop:DEFAULT_GATEWAY=198.168.10.40 --prop:DNS_SERVERS=198.168.30.30,198.168.30.25 --prop:DOMAIN_NAME=example.com --prop:TIMEZONE=Asia/Kolkata --prop:NTPLOCATION=198.168.10.30 "C:\Program Files\CA ELM\CA Enterprise Log Manager.ovf" "vi://administrator:password@examplevmwarehost/ELMQAvAppDatacenter/host/10.0.10.0"