跳過導航連結 | |
結束列印檢視 | |
![]() |
Oracle Solaris 10 1/13 安裝指南:JumpStart 安裝 Oracle Solaris 10 1/13 Information Library (繁體中文) |
使用設定檔、rules 和 custom_probes 檔案之前,必須先執行 check 程序檔,驗證檔案是否設定正確。如果已正確設置所有的設定檔、規則以及探測函式與比對函式,系統會建立 rules.ok 檔案和 custom_probes.ok 檔案。
使用 check 程序檔時,會進行下列程序:
check 會搜尋 custom_probes 檔案。
如果該檔案存在,check 就會從 custom_probes 檔案建立 custom_probes.ok 檔案、移除所有註釋和空白行,並保留所有 Bourne shell 指令、變數和演算法。然後,check 會在結尾處增加以下註釋行:
# version=2 checksum=num
$ ./check -p path -r file-name
請以所用平台之 Oracle Solaris 軟體映像檔的 check 程序檔驗證 custom_probes 檔案,而不要使用系統的 check 程序檔。path 是本機磁碟、或已掛載 Oracle Solaris 作業系統 DVD 或 Oracle Solaris 軟體 - 1 CD 上的映像檔。
指定一個與 custom_probes 檔名不相同的檔案名稱。將函式整合至 custom_probes 檔案之前,您可以先使用 -r 選項測試函式集合的有效性。
當 check 程序檔執行時,此程序檔會報告 rules 和 custom_probes 檔案以及各個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告:The JumpStart configuration is ok,並在 JumpStart 目錄中建立 rules.ok 檔案和 custom_probes.ok 檔案。
# chmod +x custom_probes