Previous Topic: Other LSM CommandsNext Topic: Install the CAM and CAFT Encryption Key


Repair UNIX Remote Agent in an Invalid Location

Symptom:

I installed UNIX Remote Agent in an invalid path, and now I can't uninstall it.

Solution:

You can uninstall UNIX Remote Agent using a script.

However, if you installed it to a location that contains characters reserved for UNIX, you cannot uninstall it easily.

For example, the following location is invalid:

/opt/CA/IdentityManager/ProvisioningUnixAgentef|grep

To move UNIX Remote Agent to a new location after you installed it in an invalid location, update its location and then uninstall and reinstall twice.

Follow these steps:

  1. Ensure that the following file is editable:
    /etc/catngdmopath.tng
    

    Note: This file is usually root-readable only. If necessary, chmod the file to ugo+rwx.

  2. Open catngdmopath.tng in a text editor, find the current location of UNIX Remote Agent, edit it to contain the new location, then save the file.
  3. Use chmod to restore the original permission settings for catngdmopath.tng.
  4. Change to the current location of UNIX Remote Agent, then change the directory name to the correct name.
  5. Run the following uninstallation script, and ignore any error messages:
    /opt/CA/IdentityManager/ProvisioningUnixAgent/scripts/uninstall.sh
    
  6. Run the installation script and ignore any error messages.
  7. Uninstall and install UNIX Remote Agent again. No error messages appear.

    UNIX Remote Agent is now ready to be used.