Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to generate the html report #18

Closed
HelloXiaoHe opened this issue Apr 24, 2018 · 3 comments

Comments

@HelloXiaoHe
Copy link

@HelloXiaoHe HelloXiaoHe commented Apr 24, 2018

hi,I use the command <get_reports id="" format_id="6c248850-1f62-11e1-b082-406186ea4fc5">
but it dosent generate a file ,so I use command <get_reports id="">| tee result.xml

I find one way to generate html file,
cd /usr/share/openvas/openvasmd/report_formats/6c248850-1f62-11e1-b082-406186ea4fc5
then run ./generate ~/result.xml >/temp/result.html
it seems work

is there a esay way to generate the html report?

@cfi-gb

This comment has been minimized.

Copy link
Member

@cfi-gb cfi-gb commented Apr 24, 2018

@HelloXiaoHe As asked in other issues please ask your question by writing a mail to openvas-discuss@wald.intevation.org

@HelloXiaoHe

This comment has been minimized.

Copy link
Author

@HelloXiaoHe HelloXiaoHe commented Apr 24, 2018

@cfi-gb done

@wiegandm

This comment has been minimized.

Copy link
Contributor

@wiegandm wiegandm commented May 9, 2018

While GMP syntax is somewhat out-of-scope for gvm-tools and @HelloXiaoHe already asked on the mailing list as @cfi-gb suggested, it should be noted that the correct attribute for specifying a single report in the get_reports command is report_id, not id.

So the command
<get_reports report_id='uuid-of-the-report' format_id='6c248850-1f62-11e1-b082-406186ea4fc5' />
will result in a get_reports_response reply which contains the Base64-encoded HTML report as a text child of the report element.

A protocol specification of the GMP protocol is available at http://docs.greenbone.net/API/OMP/omp-7.0.html.

@wiegandm wiegandm closed this May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.