Remove Agents Using Command Line Interface

This section describes how to remove gateways, data collectors and cloud agents using command line interface.

Remove Agents Using Command Line Interface

To remove an agent using command line interface, you need to use the AgentInstall script.

  • For Linux/UNIX Systems, you can use AgentInstall.sh script to remove agents.

    Run the following:

    • If your agent was installed and it was never upgraded, run the following:

      <AGENT_BASE_DIRECTORY>/core/<AGENT_VERSION>/sysman/install/AgentInstall.sh –deinstall

    • If your agent was upgraded at least once since the initial installation, run the following:

      <AGENT_BASE_DIRECTORY>/<latest upgraded version>/core/<AGENT_VERSION>/sysman/install/AgentInstall.sh –deinstall

      The < latest upgraded version> has the following format:

      • Cloud agent: LAMA_<platform>_<date stamp>

      • Gateway: GATEWAY_<platform>_<date stamp>

  • For Windows Systems, you can use AgentInstall.pl script to remove agents.

    • If your agent was installed and it was never upgraded, run the following:

      <AGENT_BASE_DIRECTORY>\core\<AGENT_VERSION>\perl\bin\perl <AGENT_BASE_DIRECTORY>\core\<AGENT_VERSION>\sysman\install\AgentInstall.pl —deinstall

    • If your agent was upgraded at least once since the initial installation, run the following:

      <AGENT_BASE_DIRECTORY>\<date stamp>\core\<AGENT_VERSION>\perl\bin\perl <AGENT_BASE_DIRECTORY>\<date stamp>\core\<AGENT_VERSION>\sysman\install\AgentInstall.pl –deinstall

To remove data collectors using command line interface, use the below command:

  • For Linux Systems, you can use AgentInstall.sh script and run the following:

    <AGENT_BASE_DIRECTORY>/core/<AGENT_VERSION>/sysman/install/AgentInstall.sh –deinstall OMR_USERNAME=omr_privileged_user OMR_USER_PASSWORD=omr_user_password OMR_USER_ROLE=omr_user_role

  • For Windows Systems, you can use AgentInstall.pl script and run the following:

    <AGENT_BASE_DIRECTORY>\core\<AGENT_VERSION>\perl\bin\perl <AGENT_BASE_DIRECTORY>\core\<AGENT_VERSION>\sysman\install\AgentInstall.pl –deinstall OMR_USERNAME=omr_privileged_user OMR_USER_PASSWORD=omr_user_password OMR_USER_ROLE=omr_user_role

Please refer to log file located under /tmp for Linux Systems or <AGENT_BASE_DIRECTORY>/logs for Windows Systems for more details.