I’m using Greenbone Community Containers with the recommended docker-compose setup. I have used gvm-tools container to run gvm-cli commands and managed to run some scans.
I can see results and download PDF reports through UI, but when trying to get the same report using gvm-cli’s <get_reports> command, the resulted pdf-file’s only real contents is the first paragraph under Summary. Rest of the two paged document is empty and only shows boilerplate texts and empty result -table under Result Overview and Result per Host topics. All actual results are missing.
This only happens with the gvm-cli, reports downloaded through UI are fine.
Thanks for pointers! I hadn’t tested any python based scripts.
Looks like this issue is related to how reports are filtered by default.
I tested export-pdf-report.gmp.py and got a full report including Log -level results.
When using export-pdf-report.gmp.py with details=False, I got the same empty report that was returned by gvm-cli earlier.
Filters were the thing I was missing. I need to read the docs a bit more, but looks like if I just configure those, the pdf reports start to look like what I was expecting.
I’m returning to this topic after some experimenting with filters. The issue persists: PDF-reports created using gvm-cli are missing all results.
Report’s Result Overview correctly describes the filter I use, but gvm-cli -created version has this weird “NaN” results -line. Where could this come from?
# gvm-cli
This report contains results to NaN of the 14 results selected by the filtering described above.
Before filtering there were 720 results.
# Same report downloaded through UI
This report contains all 14 results selected by the filtering described above.
Before filtering there were 720 results.