Solaris 10 Installation Guide for IBM BladeCenter Servers

rules File Example

The following shows 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 listed in the profile field.


Example 1–11 Generic rules File

 # rule keywords and rule values       begin script       profile       finish script
 # -----------------------------       ------------       --------      -------------
  hostname eng-1                       -                  basic_prof    -
  network 192.168.255.255 && !model \
 'SUNW,Sun-Blade-100'                  -                  net_prof      -
  model SUNW,SPARCstation-LX           -                  lx_prof       complete
  network 192.168.2.0 && karch i86pc  setup               x86_prof      done
  memsize 64-128 && arch i386          -                  prog_prof     -
  any   -                              -                  generic_prof  -

The following describes some of the keywords and values from this example.

hostname

The rule matches if the system's host name is eng-1. The basic_prof profile is used for installing the Solaris software on systems that match the rule.

network

The rule matches if the system is on subnet 192.168.255.255, and if the system is not a Sun BladeTM 100 (SUNW,Sun-Blade-100). The net_prof profile is used for installing the Solaris software on systems that match this rule.

model

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.

network

The rule matches if the system is on subnet 192.168.2.0 and is an x86 based sun4u system. The setup begin script, the x864u_prof profile, and the done finish script are used for installing the Solaris software on systems that match the rule.

memsize

The rule matches if the system has between 64 and 128 MB of memory and is an x86 based system. The prog_prof profile is used for installing the Solaris software on systems that match this rule.

any

The rule matches any system that did not match the preceding rules. The generic_prof profile is used for installing the Solaris software on systems that match this rule. If any is used, it should always be the last rule in the rules file.