This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install openscap tool. | |
sudo yum install openscap-utils | |
# Generate report based on RedHat's scap-security-guide project (SSG). | |
# Requires EPEL. | |
sudo yum install scap-security-guide | |
oscap xccdf eval --profile stig-rhel6-server-upstream \ | |
--results /tmp/`hostname`-ssg-results.xml \ | |
--report /tmp/`hostname`-ssg-results.html \ | |
--cpe /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-dictionary.xml \ |