Install a Gateway Specifying Parameters in the Command Line

This section discusses installing a gateway specifying parameters in the command line.

Perform the following before proceeding:

  1. Review the Prerequisites for Installing a Gateway.

  2. Ensure you have correctly configured the gateway.rsp response file. See Registration Parameters for Installing a Gateway and based on your requirements also, Optional Parameters for Installing a Gateway.

You can perform a gateway 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 Gateway: 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-1 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-2 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-3 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 gateway.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.