Solaris 9 Installation Guide

rules File Example

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

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


Example 23–1 rule File

 # rule keywords and rule values       begin script       profile       finish script
 # -----------------------------       ------------       --------      -------------
  hostname eng-11                      -                  basic_prof    -
  network 192.43.34.0 && !model \
 'SUNW,SPARCstation-20'2               -                  net_prof      -
  model SUNW,SPARCstation-LX3          -                  lx_prof       complete
  network 193.144.2.0 && karch i86pc  setup4              x86_prof       done
  memsize 64-128 && arch i3865         -                 prog_prof     -
  any6  -                              -                  generic_prof  -
  1. The 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 the rule.

  2. The rule matches if the system is on subnet 192.43.34.0 and if the system 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. The rule also provides an example of rule wrap, which is defined in Syntax of the rules File.

  3. 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.

  4. The rule matches if the system is on subnet 193.144.2.0 and is an x86 based system. The setup begin script, the x86_prof profile, and the done finish script are used to install the Solaris software on systems that match the rule.

  5. The rule matches if the system has between 64 and 128 Mbytes of memory and is an x86 based system. The prog_prof profile is used to install the Solaris software on systems that match the rule.

  6. The 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 the rule. If any is used, it should always be the last rule in the rules file.