diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d6ce2743..341faa44b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [9.0.1] (unreleased) ### Added +- Add option --optimize migrate-relay-sensors [#827](https://github.com/greenbone/gvmd/pull/827) ### Changed - Extend command line options for managing scanners [#815](https://github.com/greenbone/gvmd/pull/815) diff --git a/INSTALL.md b/INSTALL.md index ae4e8703d..5654708e1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -419,6 +419,13 @@ supported values for `` are: older versions, so this function can be used to correct missing severity scores in older reports. +- `migrate-relay-sensors` + + If relays are active, this can be used to make sure all sensor type + scanners have a matching relay, i.e. OSP sensors have an OSP relay + and GMP scanners have a GMP relay. + GMP scanners are migrated to OSP sensors if an OSP relay is available. + - `rebuild-report-cache` This clears the cache containing the unfiltered result counts of all reports diff --git a/doc/gvmd.8 b/doc/gvmd.8 index b8383a974..d4329f36c 100644 --- a/doc/gvmd.8 +++ b/doc/gvmd.8 @@ -110,7 +110,7 @@ Modify user's password and exit. Modify user's password and exit. .TP \fB--optimize=\fINAME\fB\f1 -Run an optimization: vacuum, analyze, cleanup-config-prefs, cleanup-port-names, cleanup-report-formats, cleanup-result-severities, cleanup-schedule-times, rebuild-report-cache or update-report-cache. +Run an optimization: vacuum, analyze, cleanup-config-prefs, cleanup-port-names, cleanup-report-formats, cleanup-result-severities, cleanup-schedule-times, migrate-relay-sensors, rebuild-report-cache or update-report-cache. .TP \fB--osp-vt-update=\fISCANNER-SOCKET\fB\f1 Unix socket for OSP NVT update. Defaults to the path of the 'OpenVAS Default' scanner if it is an absolute path. diff --git a/doc/gvmd.8.xml b/doc/gvmd.8.xml index 17c9aa89b..33f51df0c 100644 --- a/doc/gvmd.8.xml +++ b/doc/gvmd.8.xml @@ -253,7 +253,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Run an optimization: vacuum, analyze, cleanup-config-prefs, cleanup-port-names, cleanup-report-formats, cleanup-result-severities, cleanup-schedule-times, - rebuild-report-cache or update-report-cache.

+ migrate-relay-sensors, rebuild-report-cache + or update-report-cache.