How to manually remove the CA NSM system, log and performance agents after a corrupt install or uninstall on UNIX or Linux?
search cancel

How to manually remove the CA NSM system, log and performance agents after a corrupt install or uninstall on UNIX or Linux?

book

Article ID: 54294

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent CA Unicenter NSM

Issue/Introduction

Description:

This document was designed to resolve issues such as reinstalling NSM system, log, and performance agents after a failed, corrupted install or subsequent uninstall. The installer fails or thinks that NSM components are already installed on the system.

Important! This procedure can only be used if only NSM system, log and performance agents are installed on the system, as the below procedures will remove folders that may be used by other CA Applications, such as Desktop and Server Management.

Solution:

Follow the steps detailed below to manually remove CA NSM common services and agent technology components.

Important! Before removing any directories, ensure that you back up or copy folders to a safe location.

Steps to remove CA NSM components from UNIX platform:

  1. Verify that CA NSM components are not running on the system by running the command: ps -ef | grep ca.
    Kill outstanding processes if they exist.

  2. Remove entries seen below that source CA NSM environment variables from the login profile and /etc/profile, if they exist. If they do not exist, continue to the next step.

    1. Remove all the lines seen below from /etc/profile
              # *---------------------------------------------- *        #  Modifications made by setupNSM for        #  Unicenter NSM Agent Technology        # *---------------------------------------------- *        if [ "$AGENTWORKS_DIR" = '' ]        then        AGENTWORKS_DIR=<defaultNSMhomedirectory>        export AGENTWORKS_DIR        fi        if [ -f "$AGENTWORKS_DIR"/scripts/envset ]        then        . "$AGENTWORKS_DIR/scripts/envset"        fi        # *---------------------------------------------- *        # End of Modifications made by setupNSM for        # Unicenter NSM Agent Technology        # *---------------------------------------------- *        test -r /etc/profile.CA && . /etc/profile.CA # Added by Computer Associates
    2. Remove the following lines from login scripts. If they do not exist, continue to the next step.
      test -r /etc/profile.CA && . /etc/profile.CA # Added by Computer Associates

  3. Rename /etc/profile.CA to /etc/profile.old

  4. Remove entire CA folder, for example /opt/CA/.
    This will remove all traces of CA NSM agent technology, common services, and any other folders that may reside in the CA folder. (Ensure you back up this folder before removing it.)

  5. Log out of the system, then log back in to reinstall the product.

Steps to remove CA NSM components from Linux platform:

  1. Perform steps 1-4 from the above procedure

  2. Run the command to clean up the rpm table:

    1. Find all CA NSM packages installed by running the command:
      rpm -qa | grep ca
      NSM packages look like ca-license-01.xxxx-xxxxxx, ca-cs-atech-services-browse-3.1.xxxxx-xxxx.

    2. After you identify all the CA NSM rpm packages, run the command to remove the rpm packages individually:
      rpm -e <NSMcapackagename> --nodeps

Note: If you are unsure of the packages, do not remove them and contact CA Technical Support.

Environment

Release: TNGRMO05500-3.1-Network and Systems Management-Network Performance Option
Component: