Hello,

I am not quite sure what problem you have.

But maybe you mix up a single report (with results) and a list of reports ?
The XML you posted looks like the latter and your omp call like the first.


Am Mittwoch, 6. September 2017, 14:50:53 CEST schrieb Trent Townsend:
> Good day.  I'm humbly requesting again if anyone has seen such behavior as
> that described below.  I've reached my wits end on this one and my PM is
> asking me for answers.  Thanks in advance.
> 
> Trent
> 
> From: Trent Townsend
> Sent: Friday, September 1, 2017 3:23 PM
> To: openvas-discuss@wald.intevation.org
> Subject: report not generating
> 
> Seemingly at random, my reports from OMP CLI stopped working.  I copied the
> following XML from openvasmd.log which *can* generate the reports properly
> from the web GUI.
> 
> omp -Xi '<get_reports details="1" ignore_pagination="1" filt_id="0"
> filter="min_qod=70 autofp=0 apply_overrides=1 notes=1 overrides=1
> result_hosts_only=1 first=1 rows=100 sort-reverse=severity levels=hml"
> pos="1" notes_details="1" overrides_details="1"
> report_id="b7c7d80e-fbbd-46f9-9da1-5745907c2301" delta_report_id="0"
> format_id="5057e5cc-b825-11e4-9d0e-28d24461215b"/>'
> 
> However, unlike when I run it from the GUI, I only get the following (notice
> the filter is even not correct):
> 
>     <get_reports_response status_text="OK" status="200">
>       <report id="b7c7d80e-fbbd-46f9-9da1-5745907c2301"
> format_id="5057e5cc-b825-11e4-9d0e-28d24461215b" extension="xml"
> type="scan" content_type="text/xml"> <owner>
>           <name>ggc</name>
>         </owner>
>         <name>2017-09-01T10:18:43-05:00</name>
>         <comment></comment>
>         <creation_time>2017-09-01T10:18:43-05:00</creation_time>
>         <modification_time>2017-09-01T14:27:15-05:00</modification_time>
>         <writable>0</writable>
>        <in_use>0</in_use>
>         <task id="af2eac8a-da24-419f-8625-b995aebba45e"></task>
>         <report_format id="5057e5cc-b825-11e4-9d0e-28d24461215b">
>           <name>Anonymous XML</name>
>         </report_format>
>       </report>
>       <filters id="">
>         <term>apply_overrides=0 min_qod=70 first=1 rows=30 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>30</value>
>           </keyword>
>           <keyword>
>             <column>sort</column>
>             <relation>=</relation>
>             <value>name</value>
>           </keyword>
>         </keywords>
>       </filters>
>       <sort>
>         <field>name
>           <order>ascending</order>
>         </field>
>       </sort>
>       <reports max="1000" start="1"></reports>
>       <report_count>3
>         <filtered>1</filtered>
>         <page>1</page>
>       </report_count>
>     </get_reports_response>
> 
> 
> I have no idea what caused this change.  Looking at openvasmd.log shows no
> errors when running the report using omp.   What would keep OMP CLI from
> generating the full report (it did in previous days so I'm not sure what
> has changed)?  The result above shows a report count of 3 but I've now
> deleted all reports except for 1 and it still only shows output similar to
> the following.  What I need is the full XML report with details.
> 
> Thanks in advance,
> Trent
> 
> 
> 
> 
> 
> This email is confidential and intended solely for the use of the individual
> to whom it is addressed. Any views or opinions presented are solely those
> of the author, and do not necessarily represent those of Next Step
> Innovation. If you are not the intended recipient, be advised that you have
> received this email in error, and that any use, dissemination, forwarding,
> printing or copying of this email is strictly prohibited. If you have
> received this email in error, please contact the sender.


-- 
Dr. Jan-Oliver Wagner |  +49-541-760278-0  |  http://www.greenbone.net/
Greenbone Networks GmbH, Neumarkt 12, 49074 Osnabrück | AG Osnabrück, HR B 
202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to