Uninstalling the Scanner#
This page describes how to remove the scanner from a server. On the scanner server (the server on which the scanner is installed), run the command for your scanner type.
To stop scanning temporarily, you do not need to uninstall the scanner. See "Scanner Execution and Scheduling".
The work to decommission a server depends on the scan method.
| Target to decommission | Order of work |
|---|---|
| A server on which the scanner is installed (a Local Scan server, or the scanner server for Remote Scan) | 1. On the scanner server, run the command on this page to uninstall the scanner. 2. If the server is registered in FutureVuls, in the FutureVuls UI, delete the server from the delete icon at the top right of "Server Settings" in the server details (see "Delete Server"). |
| Some of the scan target servers of Remote Scan | Do not uninstall the scanner. 1. Confirm that the uuids value in the definition of the server to decommission ([servers.<server name>]) matches the Server UUID in the FutureVuls server details, and record the server to delete.2. In the configuration file used by the scheduled run ( config.toml, or the relevant file if you have split it by group), delete the definition of the server to decommission and the lines under it. Only servers written in the configuration file are scanned (see "Remote Scan > Remotely Scanning Multiple Servers").3. In the FutureVuls UI, delete the server you recorded in step 1. |
After you delete a server, the task statuses and other information cannot be restored.
Servers registered in FutureVuls are not deleted by the uninstallation. When you decommission the scanner itself, if you delete the server in the UI first, it is registered again the next time the scanner runs, so uninstall the scanner first. With Remote Scan, if you uninstall the scanner on the scanner server, the configuration information of all scan target servers that the scanner was scanning is no longer updated.
The uninstallation removes the following. Dependency software added during installation (such as yum-utils and lsof; see "Installation > What the Installation Places and Registers") is not removed. The SSH public key and sudoers that you configured on the scan target servers for Remote Scan are not removed either.
| Scanner | Removed items |
|---|---|
| Linux scanner | /opt/vuls-saas/, /var/log/vuls, /etc/sudoers.d/vuls-saas, /etc/cron.d/vuls-saas-scan, the vuls-saas user and group (the home directory /home/vuls-saas is not removed, so delete it manually if you no longer need it) |
| Windows scanner | C:\Program Files\vuls-saas\, the vuls-saas-scan task in Task Scheduler |
| Trivy scanner (standard version) | /opt/vuls-trivy-saas/, /etc/sudoers.d/vuls-trivy-saas, /etc/cron.d/vuls-trivy-saas-scan, the vuls-trivy-saas user and group, and its home directory |
Uninstalling the Linux Scanner#
Run the following command as a user with root privileges.
curl https://installer.vuls.biz/vuls-installer.sh | bash -s del
Uninstalling the Windows Scanner#
Right-click Command Prompt and select "Run as administrator", then run the following command. If a confirmation message about deleting the directory and the task is displayed, enter Y.
bitsadmin.exe /TRANSFER get https://installer.vuls.biz/vuls-installer-v2.bat "%cd%\vuls-installer-v2.bat" & vuls-installer-v2.bat del
Uninstalling the Trivy Scanner#
To uninstall the standard version of the Trivy scanner, run the following command as a user with root privileges. The lightweight version does not create a dedicated directory or a scheduled run, so no uninstallation work is required.
curl -s https://installer.vuls.biz/vuls-trivy-installer.sh | bash -s del