在您能夠使用設定檔、rules 以及 custom_probes 檔之前,必須執行 check 程序檔來驗證是否已正確設定該檔案。如果已正確設定所有的設定檔、規則以及探測與比較函式,系統將會建立 rules.ok 以及custom_probes.ok 檔。表 25-1 將說明check 程序檔的功能。
表 25-1 使用 check 程序檔各階段的作業
階段 |
說明 |
---|---|
1 |
check 會搜尋 custom_probes 檔。 |
2 |
如果該檔案存在,check 則會從 custom_probes 檔建立 custom_probes.ok 檔,並移除所有的註釋與空白行,而保留所有 Bourne shell 指令、變數與演算法。然後,check 在結尾處增加下列註釋行: # version=2 checksum=num |
檢驗 check 程序檔是否位於 JumpStart 目錄中。
check 程序檔位於 Solaris 9 DVD 或 Solaris 9 Software 2 之 2 CD 的 Solaris_9/Misc/jumpstart_sample 目錄中。
執行 check 程序檔以驗證 rules 以及 custom_probes 檔案。
$ ./check [[-p path -r file_name]] |
藉由使用平台的 Solaris 9 軟體影像之 check 程序檔,而不是作用中系統的 check 程序檔,驗證 custom_probes 檔案。 path 是本機磁碟、裝載的 Solaris 9 DVD 或 Solaris 9 Software 2 之 2 CD 上的影像。 如果您的系統執行舊版的 Solaris,請使用此選項來執行最新版本的 check。 |
|
指定一個不同於名為 custom_probes 的檔案名稱。藉由使用 -r 選項,將函式整合至 custom_probes 檔案之前,您可以測試函式集合的有效性。 |
執行 check 程序檔時,程序檔便會報告 rules、custom_probes 檔案以及每個設定檔的有效性。如果未遇到任何錯誤,程序檔會報告: "The custom JumpStart configuration is ok" 並在 JumpStart 目錄中建立 rules.ok 和 custom_probes.ok 檔。
如果可以執行,請移至 步驟 5。
如果不能執行,請鍵入下列指令:
chmod +x custom_probes
確定 root 擁有 custom_probes.ok 檔案,並且許可權設定為 755。