Overview - The procedure to use the check command to validate the rules file involves:
Running the check script
Follow this procedure to use check to validate the rules file.
As root, at label admin_low
,
make sure that the check script resides in the JumpStart
directory.
The check script is provided in the jumpstart_sample directory on the Trusted Solaris CD.
Change the directory to the JumpStart directory:
# cd jumpstart_dir_path |
Run the check script to validate the rules file:
# ./check [ -p path ] [ -r file_name ] |
In this command,
Is the path to the Trusted Solaris 7 CD. You can use a Trusted Solaris CD image on a local disk or a mounted Trusted Solaris CD. This option ensures that you are using the most recent version of the check script. You should use this option if you are using check on a workstation that is running a previous version of Trusted Solaris.
Specifies a rules file other than the one named rules. Using this option, you can test the validity of a rule before integrating it into the rules file.
As the check script runs, it reports that it is checking the validity of the rules file and the validity of each profile. If no errors are encountered, it reports:
The custom JumpStart configuration is ok.and creates a file called rules.ok.
The rules files is now validated.