CA Client Automation

Tuesday Tips: Uninstall Agent in Linux/UNIX

  • 1.  Tuesday Tips: Uninstall Agent in Linux/UNIX

    Broadcom Employee
    Posted Jun 27, 2011 02:21 PM
    CA ITCM Tuesday Tip by Gordon Lamothe, Support Engineer for 6/27/2011

    [center][size=6]How do I remove DSM/ITCM agents from Linux/Unix machines? [center]

    Description:

    To uninstall DSM/ITCM agents from Unix based operating systems you can use

    lsm -e ca-dsm

    lsm is the CA Installer/packager
    Similar to:
    RMP for Linux And PKGAdd for Sun

    LSM is universal across all Unix/Linux Platforms.
    ca-dsm is the overall Parent product (which has sub products listed if any
    of the sub-products do not remove you may need to run step 3/4.)

    Solution:

    Login into the machine (userid with root privileges)

    Run lsm -e ca-dsm

    Run the following command to see if all of the CA-DSM PIF packages installed were removed.
    lsm -l | grep PIF
    Example of the output of the above command.
    PIF CAI18N 11.0.7.0 Solaris
    PIF ca-cs-cam 12.0.63.0 Solaris

    Additional Notes: lsm will also list rpms by using lsm -l on LINUX the CA CCS installs use RPM files.
    RPM ca-cs-utils 11.2.09280 Linux
    RPM ca-cs-cam 13.0.10 Linux
    RPM ca-cs-etpki 3.2.1 Linux

    The above should be also removed with the lsm -e ca-dsm
    (Note you can also make the uninstall silent by adding a -s switch (lsm -e ca-dsm -s)

    If any entries are displayed, please remove using the following command

    lsm -e <PIFname> (second column in the above output)
    example Output: lms -e CAI18N
    Remove everything from /opt/CA (ie rm -rf /opt/CA)

    Warning:
    lsm is used by all CA Products if you have other CA products installed you should consult tech support before removing additional components.
    You may not want to remove this directory if there are other CA products installed into this directory.
    You may optionally choose to remove only /opt/CA/UnicenterDSM or /opt/CA/DSM

    Goto /etc (cd /etc) and delete the following files if they exist

    profile.CA
    csh_login.CA
    profile.itrm
    profile.uni
    csh.login.uni
    ca_sd.conf.old
    rc2.d/S*camf
    cadmuuid
    Now run the following command to confirm the uninstall was successful.
    lsm -l | grep ca

    The following are the normal ITCM 12.5 PIFs installed on a ITCM only system,
    PIF CAI18N 11.0.7.1 Linux
    PIF CAM 13.0.10.1 Any
    PIF ca-cs-sysperf-liteagent 11.2.10059.0 Linux
    PIF ca-cs-sysperf-liteagent-uam 12.0.0.0000 Linux
    PIF ca-dsm 12.5.0.2307 Linux
    PIF ca-dsm-agent-common 12.5.0.2307 Linux
    PIF ca-dsm-am-agent 12.5.0.2307 Linux
    PIF ca-dsm-am-client-api 12.5.0.2307 Linux
    PIF ca-dsm-am-common 12.5.0.2307 Linux
    PIF ca-dsm-am-sector-server-cli 12.5.0.2307 Linux
    PIF ca-dsm-caf 12.5.0.2307 Linux
    PIF ca-dsm-capki 12.5.0.2307 Linux
    PIF ca-dsm-cbb 12.5.0.2307 Linux
    PIF ca-dsm-ccnf-agent 12.5.0.2307 Linux
    PIF ca-dsm-csm-agent 12.5.0.2307 Linux
    PIF ca-dsm-dmprimer 12.5.0.2307 Linux
    PIF ca-dsm-dmprimer-embedded 12.5.0.2307 Linux
    PIF ca-dsm-dts-agent 12.5.0.2307 Linux
    PIF ca-dsm-dts-common 12.5.0.2307 Linux
    PIF ca-dsm-dts-utils 12.5.0.2307 Linux
    PIF ca-dsm-plugin-common 12.5.0.2307 Linux
    PIF ca-dsm-rc-agent 12.5.0.2307 Linux
    PIF ca-dsm-rc-agt-mgr-common 12.5.0.2307 Linux
    PIF ca-dsm-rc-agt-srv-mgr-common 12.5.0.2307 Linux
    PIF ca-dsm-script-interpreter 12.5.0.2307 Linux
    PIF ca-dsm-sd-agent 12.5.0.2307 Linux
    PIF ca-dsm-sd-agt-mgr-common 12.5.0.2307 Linux
    PIF ca-dsm-sd-agt-srv-mgr-common 12.5.0.2307 Linux
    PIF ca-dsm-sd-installer 4.5.10070.0 Linux
    PIF ca-dsm-tools 12.5.0.2307 Linux
    PIF ca-dsm-utils 12.5.0.2307 Linux
    PIF ca-dsm-wrapper 12.5.0.2307 Linux
    RPM ca-cs-utils 11.2.09280 Linux
    RPM ca-cs-cam 13.0.10 Linux
    RPM ca-cs-etpki 3.2.1 Linux[size]

    .