> -------------------------
> #!/bin/sh
>
> # Description: import of all reports generated by OpenVAS
>
> IMPORT_FILE="openvas_reports.csv"
>
> # csv format id
> REPORT_FORMAT_ID="9087b18c-626c-11e3-8892-406186ea4fc5"
>
> # Get reports
> omp -u admin -w admin -X '
> <get_reports format_id="'$REPORT_FORMAT_ID'"/>

Try adding a filter to the GET_REPORTS, like filter="rows=-1 levels=hmlg",
or whatever filter you're using in GSA.

> ' | egrep -o 'SVAsSG9zdG5hbWUsT1M[[:alnum:]]+' \

You could use something like this instead:

' | xmlstarlet sel -t -v /get_reports_response/report/text\(\)

>   | base64 -d > $IMPORT_FILE
> -------------------------

--
Greenbone Networks GmbH
Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to