I’m somewhat new to GMP and openVAS at all and try to get al list of assets of type “host” which were not yet scanned. To me it looks like these hosts do have a severity of “N/A” and I tried to define a filter to extract just these hosts. Next task would be to get a list of these hosts by using gvm-cli.
I wasn’t able to find a filter expression using the Greenbone Security Assistant nor a solution using gvm-cli.
I’m using this command line to get an - unfiltered - list of assets:
gvm-cli -c /home/administrator/.config/gvm-tools.conf socket --xml “<get_assets type=“host” ignore_pagination=“true” />” --pretty
How to extend this to get only the “N/A”-hosts?
gvm-cli 21.1.0 (API version 21.1.3)