Sun Java System Access Manager Policy Agent 2.2 Guide for Apache HTTP Server 2.2

Performing a Silent Uninstallation of a Web Agent

Generating a State File for a Web Agent Silent Uninstallation

This section describes how to generate a state file for uninstalling a web agent. This task requires you to issue a command that records the information you will enter as you follow the agent uninstallation steps. Enter all the necessary uninstallation information in order to create a complete state file.

ProcedureTo Generate a State File for a Web Agent Silent Uninstallation

To generate a state file for uninstallation of a web agent, perform the following:

  1. Change to the following directory:


    PolicyAgent-base/bin

    This directory contains the agentadmin program, which is used for uninstalling a web agent and for performing other tasks. For more information on the agentadmin program, see Introduction of the agentadmin Program for Web Agents.

  2. Issue the following command:


    ./agentadmin --uninstall --saveResponse filename
    
    -saveResponse

    An option that saves all of your responses to uninstallation prompts in a state file.

    filename

    Represents the name that you choose for the state file.

  3. Perform the uninstallation as explained in Chapter 8, Uninstalling the Apache HTTP Server 2.2 Policy Agent.

    Your answers to the prompts are recorded in the state file. When uninstallation is complete, the state file is created in the same directory where the uninstallation program is located.


    Note –

    When generated, a state file will have read permissions for all users. However, because the state file contains clear text passwords, it is recommended that you change the file permissions to restrict read and writeaccess to the user root.


Using a State File for a Web Agent Silent Uninstallation

The uninstallation program does not validate inputs or the state in the silent installation. Ensure that the proper environment exists before performing a silent uninstallation.

ProcedureTo Uninstall a Web Agent Using a State File

To perform a silent uninstallation of a Web agent using a state file, perform the following:

  1. Change to the following directory:


    PolicyAgent-base/bin

    At this point, this bin directory should contain the agentadmin program and the Web uninstallation state file.

  2. Issue the following command:


    ./agentadmin --uninstall --useResponse filename
    -useResponse

    An option that runs the uninstallation process in non-interactive mode as all responses to prompts are obtained from the named state file.

    filename

    Represents the name of the state file from which the installer obtains all responses.

    The uninstallation takes place hidden from view. After completion, the program exits automatically and displays the prompt.