Solaris 8 Advanced Installation Guide

Sample rules File Contents

The following sample shows several example rules in a rules file. Each line has a rule keyword and a valid value for that keyword. JumpStart scans the rules file from top to bottom.


Note -

Do not insert the numbers shown in the left column. They are footnotes that appear after the sample.


When JumpStart matches a rule keyword and value with a known system, it installs the Solaris software specified by the profile listed in the profile field.

 # rule keywords and rule values       begin script       profile       finish script
 # -----------------------------       ------------       --------      -------------
  [This rule matches if the system's host name is eng-1. The basic_prof profile is used to install the Solaris software on the system that matches this rule.]  hostname eng-1                      -                  basic_prof    -
  [The rule matches if the system is on subnet 192.43.34.0 and it is not a SPARCstationTM 20 (SUNW,SPARCstation-20). The net_prof profile is used to install the Solaris software on systems that match this rule.
This rule also provides an example of rule wrap, which is defined on "Syntax of the rules File".]  network 192.43.34.0 && !model \
 'SUNW,SPARCstation-20'                -                  net_prof      -
  [The rule matches if the system is a SPARCstation LX. The lx_prof profile and the complete finish script are used to install the Solaris software on systems that match this rule.]  model SUNW,SPARCstation-LX          -                  lx_prof       complete
  [This rule matches if the system is on subnet 193.144.2.0 and is an IA based system. The setup begin script, the IA_prof profile, and the done finish script are used to install the Solaris software on systems that match this rule.]  network 193.144.2.0 && karch i86pc  setup              IA_prof       done
  [This rule matches if the system has between 16 and 32 Mbytes of memory and is an IA based system. The prog_prof profile is used to install the Solaris software on systems that match this rule.]  memsize 16-32 && arch i386          -                  prog_prof     -
  [This rule matches any system that did not match the previous rules. The generic_prof profile is used to install the Solaris software on systems that match this rule. If used, any should always be the last rule in the rules file.]  any  -                              -                  generic_prof  -