跳過導航連結 | |
結束列印檢視 | |
Oracle Solaris 10 8/11 安裝指南:自訂 JumpStart 及進階安裝 Oracle Solaris 10 8/11 Information Library (繁體中文) |
使用設定檔、rules 和 custom_probes 檔案之前,必須先執行 check 程序檔,驗證檔案是否設定正確。如果已正確設置所有的設定檔、規則以及探測函式與比對函式,系統會建立 rules.ok 檔案和 custom_probes.ok 檔案。表 5-1 說明 check 程序檔的作用。
表 5-1 使用 check 程序檔時發生的狀況
|
$ ./check -p path -r file_name
請以所用平台之 Solaris 軟體影像的 check 程序檔驗證 custom_probes 檔案,而不要使用系統的 check 程序檔。path 是本機磁碟、或已掛載 Oracle Solaris Operating System DVD 或 Solaris Software - 1 CD 上的影像。
指定一個與 custom_probes 檔名不相同的檔案名稱。將函式整合至 custom_probes 檔案之前,您可以先使用 -r 選項測試函式集合的有效性。
當 check 程序檔執行時,此程序檔會報告 rules 和 custom_probes 檔案以及各個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告: 「自訂 JumpStart 配置正確」,並在 JumpStart 目錄中建立 rules.ok 檔案和 custom_probes.ok 檔案。
如果可以,請跳至 步驟 5。
如果不可以,請鍵入以下指令:
# chmod +x custom_probes