Sun Management Center 4.0 安裝與配置指南

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     -