Uninstalling silently
A silent uninstallation is non-interactive and does not launch a wizard. It enables you to quickly repeat the uninstallation by using the same parameters for multiple TrueSight Network Automation application servers and remote device agents.
To uninstall in silent mode
Create a text file called options.txt.
For more information, see Automatically-generating-an-options-txt-file.
Make sure to include the appropriate -P, -J, or -U option.Option
Description
Syntax and examples
-PSets the installation folder for an application.
-P <installLocation>=<filePath>
Application server for Microsoft Windows:
-P installLocation=C:\Program Files\BMC Software\BCA-Networks
Application server for Linux:
-P installLocation=/opt/bmc/bca-networks
Remote device agent for Windows: -P installLocation=C:\Program Files\BMC Software\BCA-Networks-Agent
Remote device agent for Linux: -P installLocation=/opt/bmc/bca-networks-agent
Note: If you installed TrueSight Network Automation in a non-default path, replace the path with the actual installation path.-UUninstalls a product or an individual feature.
-U product<productName>
-U feature<featureName>
Application server: -U featureBcanServer
Remote device agent: -U featureBcanDeviceAgent
TFTP server (Windows only): -U featureBcanTftpServer-JSpecifies Java properties that correspond to user inputs.
To preserve the operational data on uninstall:
-J PRESERVE_DATABASE_DIRECTORIES=true- Save the options file.
- Change to the directory where the uninstall file is located, for example:
- Application server for Windows — C:\Program Files\BMC Software\BCA-Networks\UninstallBMCBcan
- Application server for Linux — /opt/bmc/bca-networks/UninstallBMCBcan
- Remote device agent for Windows — C:\Program Files\BMC Software\BCA-Networks-Agent\UninstallBMCBcan
Remote device agent for Linux — /opt/bmc/bca-networks-agent/UninstallBMCBcan
- Run the uninstaller with the -i silentoption.
For Windows, enter:
uninstall.cmd -i silent -DOPTIONS_FILE=pathToFile\options.txtFor Linux, enter:
./uninstall.sh -i silent -DOPTIONS_FILE=pathToFile/options.txt