<get_reports> doesnot provide scan result

I have read the documentation provided here. As shown in the documentation, I created target, created task, started task. Now I am trying to get the scan results but the <get_reports report_id="reportID" format_id="formatID"/> does not provide any details about the target host like vulnerabilities detected.

Below is the output that I got.

pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuser --gmp-password mypass --sockpath /usr/local/var/run/gvmd.sock  --xml '<get_reports report_id="ec2a5940-a2e5-4ca8-8748-9e4abffea570" format_id="c15ad349-bd8d-457a-880a-c7056532ee15"/>'

<get_reports_response status="200" status_text="OK"><report type="scan" id="ec2a5940-a2e5-4ca8-8748-9e4abffea570" format_id="c15ad349-bd8d-457a-880a-c7056532ee15" extension="vna" content_type="application/zip"><owner><name>myuser</name></owner><name>2019-02-23T03:47:46Z</name><comment></comment><creation_time>2019-02-23T03:47:46Z</creation_time><modification_time>2019-02-23T03:48:01Z</modification_time><writable>0</writable><in_use>0</in_use><task id="03ec87bf-68ce-4a33-b4d7-932743e09655"><name>Scan Suspect Host vps</name></task><report_format id="c15ad349-bd8d-457a-880a-c7056532ee15"><name>Verinice ISM</name></report_format></report><filters id=""><term>apply_overrides=0 min_qod=70 first=1 rows=10 sort=name</term><keywords><keyword><column>apply_overrides</column><relation>=</relation><value>0</value></keyword><keyword><column>min_qod</column><relation>=</relation><value>70</value></keyword><keyword><column>first</column><relation>=</relation><value>1</value></keyword><keyword><column>rows</column><relation>=</relation><value>10</value></keyword><keyword><column>sort</column><relation>=</relation><value>name</value></keyword></keywords></filters><sort><field>name<order>ascending</order></field></sort><reports start="1" max="1000"/><report_count>3<filtered>1</filtered><page>1</page></report_count></get_reports_response>

Please let me know what am I missing here.

Most likely the report format plugin had an error during the generation of the report. You could try to get the plain xml report to verify my assumption.

And btw. you should NOT run gvm-cli as root user!

Please avoid running tools as root user on any unix system. You have to adjust your user rights or the unix socket permissions of openvasmd/gvmd to be able to access the socket.

2 Likes