This section demonstrates the format and use of the agentadmin command with the --uninstall option.
The following example illustrates the format of the agentadmin command with the --uninstall option:
./agentadmin --uninstall [--useResponse] [--saveResponse] filename
The following arguments are supported with the agentadmin command when using the --uninstall option:
Use this argument to save all supplied responses to a state file, or response file, represented as filename in command examples. The response file, or state file, can then be used for silent uninstallations.
Use this argument to uninstall an agent in silent mode as all uninstaller prompts are answered with responses previously saved to a response file, represented as filename in command examples. When this argument is used, the uninstaller runs in non-interactive mode. At which time, user interaction is not required.
Use this argument to specify the name of a file that will be created as part of the processing of this command. This file stores your responses when this argument is used in conjunction with the --saveResponse argument and provides your responses when this argument is used in conjunction with the --useResponse argument.
When you issue the agentadmin command, you can choose the --uninstall option. With the --uninstall option, you can choose the --saveResponse argument, which requires a file name be provided. The following example illustrates this command where the file name is myfile:
./agentadmin --uninstall --saveResponse myfile
Once the uninstaller has executed the preceding command successfully, the responses are stored in a state file that can be used for later runs of the uninstaller.
If desired, you can modify the state file and configure the second uninstallation with a different set of configuration parameters.
Then you can issue another command that uses the ./agentadmin --uninstall command and the name of the file that you just created with the --saveResponse argument. The difference between the previous command and this command is that this command uses the --useResponse argument instead of the --saveResponse argument. The following example illustrates this command:
./agentadmin --uninstall --useResponse myfile
With this command, the uninstallation prompts run the uninstaller in silent mode, registering all debug messages in the install logs directory.