$ pfexec compliance assess -p profile -b benchmark -a assessment-name
-
-p
profile
-
Indicates the name of the profile. The profile name is case sensitive.
-
-b
benchmark
-
Indicates the name of the benchmark. The benchmark name is case sensitive.
-
-a
assessment-name
-
Optional. Indicates the name of the assessment. The default name includes a time stamp.
For example, the following command assesses the system using the Recommended
profile and creates an assessment directory in the compliance repository for the assessment named recommended
.
$ pfexec compliance assess -p Recommended -b solaris -a recommended
After the command completes, the reports are stored in a plain text log file named log
, an XML file named results.xccdf.xml
, and an HTML file named report.html
.
$ pfexec compliance report -a recommended
/var/share/compliance/assessments/12345678-1111-1111-1111-12345678abcd/report.html
If you run the same compliance assess
command again, the files are not replaced. The system differentiates the assessments by UUID
. For example:
$ compliance list -a recommended
recommended
UUID: 12345678-1111-1111-1111-12345678abcd
UUID: ab345678-1111-1111-1111-12345678abcd