Sun OpenSSO Enterprise Policy Agent 3.0 Guide for Oracle WebLogic Server/Portal 10

Uninstalling the WebLogic Server/Portal 10 Agent

Preparing to Uninstall the WebLogic Server/Portal 10 Agent

Removing the Agent Authentication Provider

To remove the Agent Authentication Provider that was configured after the agent was installed, use the WebLogic Server/Portal 10 Administration Console.

ProcedureTo Remove the Agent Authentication Provider

  1. Login to the WebLogic Server/Portal 10 Administration Console.

  2. In the left pane, under Domain Structure and under the host name of the server you are configuring, click Security realms.

  3. In the right pane, click the name of the realm you are configuring.

  4. Click Providers.

  5. Click the Authentication tab.

  6. In the left pane, click Lock & Edit.

  7. In the right pane, specify the Policy Agent Authentication Provider.

  8. Click Delete.

  9. Click Yes.

  10. In the left pane, click Activate changes.

    The Agent Authentication Provider is not removed from the configuration until you restart the WebLogic Server/Portal 10 instance. The best practice is to restart the WebLogic Server/Portal 10 instance after you perform the following tasks.

Unconfiguring the WebLogic Server/Portal 10 Agent

ProcedureTo Unconfigure the WebLogic Server/Portal 10 Agent

  1. Undeploy any applications protected by the WebLogic Server/Portal 10 agent.

  2. Restore the deployment descriptors of these applications to their original deployment descriptors. (Backup files are useful here if you have them.)

  3. If you are permanently removing the WebLogic Server/Portal 10 agent, undeploy the agent application.

    However, if you plan to re-install this agent , you don't need to undeploy the agent application.

  4. If the WebLogic Server/Portal 10 instance was originally configured using Node Manager, remove the classpath and agent Java options using the WebLogic Server/Portal 10 Administration Console. For more information, see:

    Configuring a WebLogic Server 10 Instance With the Agent classpath and Java Options

    or

    WebLogic Portal 10: Configuring the Agent classpath and Java Options

  5. Ensure that the WebLogic Server/Portal 10 container is stopped.

Uninstalling the WebLogic Server/Portal 10 Agent Using the agentadmin Program

ProcedureTo Uninstall the WebLogic Server/Portal 10 Agent

  1. Change to the following directory:

    PolicyAgent-base/bin

  2. 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.

  3. When prompted, enter the Startup script location.

  4. The uninstall program displays your response and then asks if you want to continue:

    To continue with the uninstallation, select 1 (the default).


Example 2 Uninstallation Sample for the WebLogic Server/Portal 10 Agent

************************************************************************
Welcome to the Sun OpenSSO Enterprise Policy Agent 3.0 for BEA WebLogic
10.0 Platform.
************************************************************************

Enter the path to the location of the script used to start the WebLogic domain.
Please ensure that the agent is first installed on the admin server instance
before installing on any managed server instance.
[ ? : Help, ! : Exit ]
Enter the Startup script location
[/usr/local/bea/user_projects/domains/base_domain/startWebLogic.sh]: 
/opt/bea/user_projects/domains/base_domain/startWebLogic.sh

-----------------------------------------------
SUMMARY OF YOUR RESPONSES
-----------------------------------------------
Startup script location :
/opt/bea/user_projects/domains/base_domain/startWebLogic.sh

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]:

Remove amauthprovider.jar from
/export/home/opt/bea/wlserver_10.0/server/lib/mbeantypes ...DONE.

Deleting the config directory
/export/home/opt/agents/weblogic10/j2ee_agents/weblogic_v10_agent/Agent_001/config
...DONE.

UnConfigure
/opt/bea/user_projects/domains/base_domain/setAgentEnv_AdminServer.sh
...DONE.

Uninstall log file location:
/export/home/opt/agents/weblogic10/j2ee_agents
/weblogic_v10_agent/install-logs/audit/uninstall.log

Thank you for using Sun OpenSSO Enterprise Policy Agent 3.0.

After You Finish the Uninstall