檢驗 check 程序檔是否位於 JumpStart 目錄中。
check 程序檔是位於 Solaris 9 DVD 或是 Solaris 9 Software 1 of 2 CD 的 Solaris_9/Misc/jumpstart_sample 目錄中。
執行 check 程序檔以驗證 rules 以及 custom_probes 檔案。
$ ./check [[-p path -r file_name]] |
驗證 custom_probes 檔案,要使用平台的 Solaris 9 軟體影像之 check 程序檔,而不是使用您正在用的系統之 check 程序檔。 path 是本機磁碟、裝載的 Solaris 9 DVD 或 Solaris 9 Software 1 of 2 CD 上的影像。
如果系統執行舊版的 Solaris,請使用此選項來執行最新版本的 check。
指定一個與 custom_probes 檔名不相同的名稱。藉由使用 -r 選項,您可以先測試函式集合的有效性,然後將函式整合至 custom_probes 檔案。
執行 check 程序檔時, 程序檔便會報告 rules 和 custom_probes 檔案以及每個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告: “自訂 JumpStart 配置正確” 並在 JumpStart 目錄中建立 rules.ok 與 custom_probes.ok 檔案。
如果可以執行,請移至步驟 5。
如果不能執行,請鍵入下列指令:
# chmod +x custom_probes |
確保 root 擁有 custom_probes.ok 檔案且許可權設定為 755。