How to update/keep the feed up to date?

gvm-9
solved

#1

I’ve found this script that should do the job. Is this correct?

#!/bin/bash
/usr/sbin/greenbone-nvt-sync
/usr/sbin/greenbone-certdata-sync
/usr/sbin/greenbone-scapdata-sync
/usr/sbin/openvasmd --update --verbose --progress
/etc/init.d/openvas-manager restart
/etc/init.d/openvas-scanner restart

Software version incorrectly detected
#2

Hi henkies,
these are the same commands I use to update except the command:

/usr/sbin/openvasmd --update --verbose --progress

usually i use

/usr/sbin/openvasmd --rebuild --verbose --progress

I prefer to rebuild all than update :grinning:
I check the openvasmd options here:
https://www.mankier.com/8/openvasmd

or via cli:

openvasmd --help

Giovanni


#3

Awesome, thanks!


#4

How to update the feeds in GVM9+

Valid for: GVM9+
NOT valid for: OpenVAS8 and below, Greenbone OS (GOS) based installation like Greenbone Security Manager (GSM) or Greenbone Community Edition (GCE).

Without running openvasmd/gvmd and openvassd

  1. Start the openvassd daemon
  2. Start the openvasmd/gvmd daemon
  3. Run greenbone-nvt-sync script and make sure that you’re NOT using use the --sync-only parameter
  4. Run greenbone-scapdata-sync
  5. Run greenbone-certdata-sync (This should be started after greenbone-scapdata-sync)

With running openvasmd/gvmd and openvassd

  1. Run greenbone-nvt-sync script and make sure that you’re NOT using the --sync-only parameter
  2. Run greenbone-scapdata-sync
  3. Run greenbone-certdata-sync (This should be started after greenbone-scapdata-sync)

#5

@henkies @Mogimbo

On GVM9+ it is not required to run the openvasmd --update or --rebuild command as long as both services are running. The greenbone-nvt-sync script will do this step for you. To avoid misunderstandings i have written a short summary above and set this as the solution to the initial question.

If you have found scripts which are doing any of such restarts or rebuilds please contact the author of these scripts to get them corrected.


#6

Hi cfi,
thank you

Giovanni


#7

Ok thanks!