I’m newbie in Greenbone/Openvas system scanner. I’ve been using it for a few weeks.
These are some details about my installation:
Greenbone Security Assistant 8.0.0
Greenbone Vulnerability Manager 8.0.0
OpenVAS Scanner 6.0.0
CentOS Linux release 7.6.1810 (Core)
Linux openvas.management 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Installation was made throught Yum and Atomic repository:
I run many scans of individual hosts and small networks and everything works very well.
Now I need to run batches to remove old reports, tasks and if possible some Tasks so I
read database from gvm-cli:
gvm-cli tls --hostname localhost --gmp-username admin --gmp-password XXXX -X “<get_tasks/>”
but when I try with:
gvm-cli tls --hostname localhost --gmp-username admin --gmp-password XXXXX -X “<delete_task task_id=“74a92082-78ea-4bd8-ac23-4248067b8cdc”>”
I’ve got some errors:
Traceback (most recent call last):
File “/bin/gvm-cli”, line 11, in
load_entry_point(‘gvm-tools==1.4.1’, ‘console_scripts’, ‘gvm-cli’)()
File “/usr/lib/python3.6/site-packages/gmp/clients/gvm_cli.py”, line 213, in main
result = gvm.read()
File “/usr/lib/python3.6/site-packages/gmp/gvm_connection.py”, line 108, in read
raise OSError(‘Connection was closed by remote server’)
OSError: Connection was closed by remote server
Any ideas ? Are there any other tools to remove old tasks ?
Thanks a lot.