Sun Management Center 3.6 安装和配置指南

Procedure创建 JumpStart 规则文件

步骤
  1. 以超级用户身份登录创建了 JumpStart 配置文件目录的计算机。

  2. 转到您在创建 JumpStart 安装服务器和配置文件目录步骤 2 中创建的 JumpStart 配置文件目录。

  3. 创建 JumpStart 规则文件。

    使用以下规则文件示例作为模板,在 JumpStart 配置文件目录中创建规则文件。


示例 6–7 规则文件范例

#
# rule keywords and rule values   begin script   profile    finish  script 
# ------------------------------  ------------   -------    --------------
  
# This rule matches one system: 
#
hostname bootserver01            -         basic_prof  base_agent_finish.sh 
 
 
# This is a complex rule:
#
network 192.43.34.0 && ! model \ 
 SUNW,SPARCstation-20                 -         net_prof         - 
 
 
# This rule applies to all 
# SUNW,SPARCstation-LX:
#
model SUNW,SPARCstation-LX            -         lx_prof     complete.sh
 
 
# Another complex rule:
#
network 193.144.2.0 && karch i86pc   init.sh    IA_prof     done.sh
 
#
# You can use system attributes like RAM size and architecture to 
# classify targets:
#
memsize 16-32 && arch i386           -          prog_prof        -
 
 
# rules are matched top-down. If nothing matches, this rule will apply:
#
any                  -               -         generic_prof     -