Change to the following directory:
PolicyAgent-base/bin
Issue one of the following commands:
# ./agentadmin --uninstall
or
# ./agentadmin --uninstallAll
The --uninstall removes only one instance of the agent, while the --uninstallAll option prompts you to remove all configured instances of the agent.
The uninstall program prompts you for the Application Server configuration directory path. For example:
Default: /var/opt/SUNWappserver/domains/domain1/config
The uninstall program displays your choices and then asks if you want to continue:
To continue with the uninstallation, select 1 (the default).
************************************************************************ Welcome to the Sun OpenSSO Enterprise Policy Agent 3.0 for Sun Java System Application Server 8.1/8.2/9.0/9.1. ************************************************************************ Enter the complete path to the directory which is used by Application Server to store its configuration Files. This directory uniquely identifies the Application Server instance that is secured by this Agent. [ ? : Help, ! : Exit ] Enter the Application Server Config Directory Path [/var/opt/SUNWappserver/domains/domain1/config]: /opt/SUNWappserver/domains/domain1/config ----------------------------------------------- SUMMARY OF YOUR RESPONSES ----------------------------------------------- Application Server Config Directory : /opt/SUNWappserver/domains/domain1/config Verify your settings above and decide from the choices below. 1. Continue with Uninstallation 2. Back to the last interaction 3. Start Over 4. Exit Please make your selection [1]: Removing Agent parameters from /opt/SUNWappserver/domains/domain1/config/login.conf file ...DONE. Removing java permissions from /opt/SUNWappserver/domains/domain1/config/server.policy file ...DONE. Removing Agent parameters from /opt/SUNWappserver/domains/domain1/config/domain.xml file ...DONE. Deleting the config directory /agents/j2ee_agents/appserver_v9_agent/Agent_001/config ...DONE. Uninstall log file location: /agents/j2ee_agents/appserver_v9_agent/install-logs/audit/uninstall.log Thank you for using Sun OpenSSO Enterprise Policy Agent 3.0.
The /config directory is removed from the agent instance directory, but the /install-logs directory still exists.
The uninstall program creates an uninstall log file in the PolicyAgent-base/install-logs/audit directory.
The agent instance directory is not automatically removed. For example, if you uninstall the agent for Agent_001, a subsequent agent installation creates the Agent_002 instance directory. To remove an agent instance directory, you must manually remove the directory.