Install a Data Collector Specifying Parameters in the Command Line

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

Perform the following before proceeding:

  1. Review the Prerequisites for Installing a Data Collector.

  2. Ensure you have correctly configured the agent.rsp response file and specified the correct values of the parameters listed in Registration Parameters for Installing Cloud Agents and Communication Parameters for Installing Cloud Agents based on your requirements.

    Also, ensure that you have updated the agent.rsp response file with the correct values of the data collector parameters listed in Data Collector Parameters. You may need to specify additional data collector parameters listed in Optional Data Collector Parameters based on your requirements.

You can perform a data collector 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 Data Collector: 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-7 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> DATA_COLLECTOR_USERNAME=<DATA_COLLECTOR_USERNAME> DATA_COLLECTOR_USER_PASSWORD=<DATA_COLLECTOR_USER_PASSWORD> OMR_USERNAME=<OMR_USERNAME> OMR_USER_PASSWORD=<OMR_USER_PASSWORD> OMR_HOST_USERNAME=<OMR_HOST_USERNAME> OMR_STAGE_DIR=<OMR_STAGE_DIR> OMR_HOST_USER_PASSWORD=<OMR_HOST_USER_PASSWORD> OMR_HOSTNAME=<OMR_HOSTNAME> OMR_PORT=<OMR_PORT> OMR_SID=<OMR_SID>

In the above example, you specify the values of the parameters in the command line. The installation script will use the values of the parameters provided.

Example 5-8 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-9 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.