Install the Cloud Agent Specifying Parameters in the Command Line

This section discusses installing the cloud agent specifying parameters in the command line.

Perform the following before proceeding:

  1. Review the Prerequisites for Installing Cloud Agents.

  2. Ensure you have correctly configured the agent.rsp response file. See Registration Parameters and Communication Parameters.

You can perform a cloud agent installation specifying parameters in the command line or you can specify a combination of command line parameters and the use of a response file. You can do one of the following:

  • Specify parameters only in the response file (See Cloud Agents: Typical Installation).

  • Specify parameters only in the command line.

  • Specify parameters in the command line and the response file. In this case, the parameter values specified in the command line gets priority over the same values specified in the response file.

Example 5-4 Specify parameters only in the command line:

./AgentInstall.sh|bat TENANT_NAME=<TENANT_NAME> OMC_URL=<OMC_URL> AGENT_REGISTRATION_KEY=<AGENT_REGISTRATION_KEY> AGENT_BASE_DIRECTORY=<AGENT_BASE_DIRECTORY>

In the above example, you specify the values of the parameters in the command line. The installation script will use the values of the mandatory parameters: TENANT_NAME,OMC_URL, AGENT_REGISTRATION_KEY and the optional parameter: AGENT_BASE_DIRECTORY.

Example 5-5 Specify parameters in the command line and the response file:

./AgentInstall.sh|bat AGENT_BASE_DIRECTORY=<AGENT_BASE_DIRECTORY>

In the above example, you specify the value of AGENT_BASE_DIRECTORY parameter in the command line and the rest of the parameters values are specified in the response file.

Example 5-6 Specify parameters in the command line and the response file if response file doesn't reside in the default location:

./AgentInstall.sh|bat AGENT_RSP_FILE=<absolute path to the agent.rsp file>

In the above example, you specify the value of AGENT_RSP_FILE parameter in the command line since it resides in a different location than the AgentInstall installation script file (by default, both files reside in the same directory). The rest of the parameters are specified in the response file.