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 BMC 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
-P
Sets 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 BMC Network Automation in a non-default path, replace the path with the actual installation path.-U
Uninstalls 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
-J
Specifies 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
Note
If you installed BMC Network Automation in a non-default path, replace the path with the actual installation path.
- Run the uninstaller with the
-i silent
option.For Windows, enter:
uninstall.cmd -i silent -DOPTIONS_FILE=pathToFile\options.txt
For Linux, enter:
./uninstall.sh -i silent -DOPTIONS_FILE=pathToFile/options.txt
Note
You must specify an absolute path to the options.txt file because the uninstaller does not execute from the directory where you run the command.
Comments
Log in or register to comment.