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

  1. 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 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

  2. Save the options file.
  3. 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 Network Automation in a non-default path, replace the path with the actual installation path.

  4. Run the uninstaller with the -i silentoption.
    • 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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*