Makes sense, thank you !
On Nov 18, 2015 9:42 PM, "Eero Volotinen" <[email protected]> wrote:

> Well.
>
> You need to use report id, that is available under task-id to specify what
> report you want. In short, you are not using correct id as task id is not
> the report id.
>
> I think this is now available with parameters --details view or then you
> need to use "<get_tasks task_id='%s' details='1' />"
> to list all available report.
>
> I use something like this with php to get report id..
>
> function get_report($hostname, $id)
>
> {
>
>         $today = date("Ymd");
>
>         echo "processing [$hostname] [$id]  \n";
>
>         if(!file_exists("/tmp/$today")) mkdir("/tmp/$today");
>
>         $formatstr = get_format("CSV Results");
>
>         // get last raport for this host
>
>         $string = sprintf( "omp  -iX \"<get_tasks task_id='%s' details='1'
> />\" |grep -A1 '<last_report' |grep id | awk -F\\\" '{ print $2 }'",$id);
>
>         $report_id = shell_exec($string);
>
>         $report_id = trim($report_id);
>
>         $string2 = sprintf("omp  --get-report %s --format %s  >>
> /tmp/%s/all-in-one.csv",$report_id,$formatstr,$today);
>
> //        echo "$string2";
>
>         shell_exec($string2);
>
>
> }
>
> have a fun.
>
>
> br,
> --
> Eero
>
> 2015-11-19 0:23 GMT+02:00 cory cardio <[email protected]>:
>
>> Can somebody point me in the right direction to debug the failure below?
>> Thank you in advance.
>>
>> /home/knab  ᐅ cat ~/omp.config
>> [Connection]
>> username=admin
>> password=f2f57ca9-e8ea
>> /home/knab  ᐅ omp
>> --get-tasks
>>
>> ed3bddef-c48c-4fb3-9682-22f5d63e37a4  Done         sfk-int15-targeted-1
>> 7c4c9d5c-2f6a-4529-bcd3-f56c8aa18df5  Done         sfk-int15-targeted-2
>> 948bd692-82c6-4da9-b120-66506e74aa54  Done         sfk-int15-targeted-3
>> 1688bcee-5194-4412-b198-519d6ac49307  Done         sfk-int15-targeted-4
>> 62e1b5ef-25ef-4bbf-8d09-88c1ec722080  Stopped      sfk-int15-targeted-5
>> 5d0e59ac-ccfd-4aab-a509-39287534a671  Done         sfk-int15-targeted-5-2
>> /home/knab  ᐅ omp
>> -F
>>
>> 5057e5cc-b825-11e4-9d0e-28d24461215b  Anonymous XML
>> 910200ca-dc05-11e1-954f-406186ea4fc5  ARF
>> 5ceff8ba-1f62-11e1-ab9f-406186ea4fc5  CPE
>> 9087b18c-626c-11e3-8892-406186ea4fc5  CSV Hosts
>> c1645568-627a-11e3-a660-406186ea4fc5  CSV Results
>> 6c248850-1f62-11e1-b082-406186ea4fc5  HTML
>> 77bd6c4a-1f62-11e1-abf0-406186ea4fc5  ITG
>> a684c02c-b531-11e1-bdc2-406186ea4fc5  LaTeX
>> 9ca6fe72-1f62-11e1-9e7c-406186ea4fc5  NBE
>> c402cc3e-b531-11e1-9163-406186ea4fc5  PDF
>> 9e5e5deb-879e-4ecc-8be6-a71cd0875cdd  Topology SVG
>> a3810a62-1f62-11e1-9219-406186ea4fc5  TXT
>> c15ad349-bd8d-457a-880a-c7056532ee15  Verinice ISM
>> a994b278-1f62-11e1-96ac-406186ea4fc5  XML
>> /home/knab  ᐅ omp --get-report 948bd692-82c6-4da9-b120-66506e74aa54
>> --format 6c248850-1f62-11e1-b082-406186ea4fc5
>> Failed to get report.
>>
>>
>> _______________________________________________
>> Openvas-discuss mailing list
>> [email protected]
>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>>
>
>
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to