[Open-scap] Is there any easy way to output the value of the xccdf score from a scan?

Philippe Thierry phil at reseau-libre.net
Fri Apr 28 08:10:10 UTC 2017


Le 28/04/2017 à 09:53, Luther Goh Lu Feng a écrit :
> Currently, the html report from an xccdf scan has the value as attached. Is there any easy way to send this value to the shell when running oscap from the cli?
>
>
> --Luther

As far as I know, you should use the ARF format report for 
postprocessing (using tools such as Foreman) to get back such value. The 
report is for human information only. Using a shell script directly, you 
have to parse the XML file.

I'm currently integrating openscap-daemon into Debian sid (it's in the 
NEW queue by now, should be integrated in some days), which will help 
you to schedule and store the results and reports for postprocessing, 
which make it easier than shell-scripting.

If you want a complete integration, Scaptimony would help through 
storing results in a database in a ROR ecosystem... Yet I didn't start 
its packaging (well its ruby code... leave me some zen time first ;) )

-- 

Philippe.






More information about the Open-scap-list mailing list