1.6 Uninstalling the J2EE Agent

1.6.1 Uninstalling the JBoss or WebSphere Agent on Linux

  1. Change to the Access Manager directory.

  2. At the command prompt of the Access Manager directory, enter the following:

    ./uninstall.sh
    
  3. Answer Yes to uninstall each component of the agent.

  4. After uninstalling the agent, log in to the Administration Console.

  5. Click Access Manager > J2EE Agents.

  6. Select the agent that you have just uninstalled, then click Actions > Delete.

  7. At the confirmation prompt, click OK.

    This removes the configuration object for the agent, which is automatically created when an agent is installed.

1.6.2 Uninstalling the JBoss or WebSphere Agent on Windows

  1. From the Control Panel, select Add or Remove Programs.

  2. Select to uninstall the Access Manager Agents and follow the prompts.

    The uninstall program for WebSphere must stop and start the WebSphere server to complete a successful removal of the agent.

  3. After uninstalling the agent, log in to the Administration Console.

  4. Click Access Manager > J2EE Agents.

  5. Select the agent that you have just uninstalled, then click Actions > Delete.

  6. At the confirmation prompt, click OK.

    This removes the configuration object for the agent, which is automatically created when an agent is installed.

1.6.3 Uninstalling the WebLogic Agent

Because the install and configuration of the J2EE Agent for WebLogic is manual, the uninstall is also manual. You need to use the WebLogic scripting tool to run the following scripts:

  • weblogic__nesp_undeploy.jy

  • weblogic_de-config.jy

To uninstall the WebLogic Agent:

  1. Make sure the WebLogic server is running.

  2. Execute the WebLogic scripting tool with the parameters required to run the weblogic_nesp_undeploy.jy script. This script needs the name of the WebLogic admin user, the admin’s password, and the local host with port (usually localhost:7001).

    Linux Example: /opt/bea/weblogic92/common/bin/wlst.sh /opt/novell/nids_agents/bin/weblogic_nesp_undeploy.jy username password localhost:7001

    Windows: C:\bea\weblogic92\common\bin\wlst.cmd C:\Novell\bin\weblogic_nesp_undeploy.jy username password localhost:7001

  3. Execute the WebLogic scripting tool with the parameters required to run the weblogic_de-config.jy script. This script needs the name of the WebLogic admin user, the admin’s password, the domain name, and the local host with port (usually localhost:7001).

    Linux Example: /opt/bea/weblogic92/common/bin/wlst.sh /opt/novell/nids_agents/bin/weblogic_de-config.jy username password base_domain localhost:7001

    Windows Example: C:\bea\weblogic92\common\bin\wlst.cmd C:\Novell\bin\weblogic_de-config.jy username password base_domain localhost:7001

  4. Delete the NidsWebLogicAgentMBeans.jar file from the WL_HOME/server/lib/mbeantypes directory.

  5. Run the standard uninstall program for the platform.

    Linux: At the command prompt of the Access Manager directory, execute the uninstall.sh script. For more information, see Section 1.6.1, Uninstalling the JBoss or WebSphere Agent on Linux.

    Windows: From the Control Panel, select Add or Remove Programs and select to uninstall the agent. For more information, see Section 1.6.2, Uninstalling the JBoss or WebSphere Agent on Windows.

  6. After uninstalling the agent, log in to the Administration Console.

  7. Click Access Manager > J2EE Agents.

  8. Select the agent that you have just uninstalled, then click Actions > Delete.

  9. At the confirmation prompt, click OK.

    This removes the configuration object for the agent, which is automatically created when an agent is installed.