Solaris 9 安裝指南

驗證 custom_probes

在您能夠使用設定檔、rules 以及 custom_probes 檔之前,必須執行 check 程序檔來驗證是否已正確設定該檔案。如果已正確設定所有的設定檔、規則以及探測與比較函式,系統將會建立 rules.ok 以及custom_probes.ok 檔。表 25–1 將說明check 程序檔的功能。

表 25–1 使用 check 程序檔各個階段的作業

階段 

說明  

check 會搜尋 custom_probes 檔。

如果該檔案存在,check 則會從 custom_probes 檔建立 custom_probes.ok 檔,並移除所有的註釋與空白行,而保留所有 Bourne shell 指令、變數與演算法。然後,check 在結尾處增加下列註釋行:

# version=2 checksum=num

如果要驗證 custom_probes 檔案

  1. 檢驗 check 程序檔是否位於 JumpStart 目錄中。


    註解 –

    check 程序檔位於 Solaris 9 DVD 或 Solaris 9 Software 1 of 2 CD 上的Solaris_9/Misc/jumpstart_sample 目錄中。


  2. 變更至 JumpStart 目錄。

  3. 執行 check 程序檔以驗證 rules 以及 custom_probes 檔案。


    $ ./check [[-p path -r file_name]]

    -p path

    使用平台 Solaris 9 軟體影像的 check 程序檔,而不是使用中系統的 check 程序檔,來驗證 custom_probes 檔案。path 是本機磁碟、裝載的 Solaris 9 DVD 或 Solaris 9 Software 1 of 2 CD 上的影像。

    如果系統執行舊版的 Solaris,請使用此選項來執行最新版本的 check

    -r file_name

    指定一個與 custom_probes 檔案不同名的檔案名稱。藉由使用 -r 選項,您可以先測試函式集合的有效性,然後將函式整合至 custom_probes 檔案。

    執行 check 程序檔時,程序檔便會報告 rulescustom_probes 檔案以及每個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告: "The custom JumpStart configuration is ok" 並在 JumpStart 目錄中建立 rules.ok custom_probes.ok 檔。

  4. 判定 custom_probes.ok 檔案是否可以執行。

    • 如果可以執行,請移至 步驟 5

    • 如果不能執行,請鍵入下列指令:

      chmod +x custom_probes

  5. 確定 root 擁有 custom_probes.ok 檔案,並且許可權設定為 755。

如果要驗證 custom_probes 檔案

  1. 檢驗 check 程序檔是否位於 JumpStart 目錄中。


    註解 –

    check 程序檔位於 Solaris 9 DVD 或 Solaris 9 Software 1 of 2 CD 上的Solaris_9/Misc/jumpstart_sample 目錄中。


  2. 變更至 JumpStart 目錄。

  3. 執行 check 程序檔以驗證 rules 以及 custom_probes 檔案。


    $ ./check [[-p path -r file_name]]

    -p path

    使用平台 Solaris 9 軟體影像的 check 程序檔,而不是使用中系統的 check 程序檔,來驗證 custom_probes 檔案。path 是本機磁碟、裝載的 Solaris 9 DVD 或 Solaris 9 Software 1 of 2 CD 上的影像。

    如果系統執行舊版的 Solaris,請使用此選項來執行最新版本的 check

    -r file_name

    指定一個與 custom_probes 檔案不同名的檔案名稱。藉由使用 -r 選項,您可以先測試函式集合的有效性,然後將函式整合至 custom_probes 檔案。

    執行 check 程序檔時,程序檔便會報告 rulescustom_probes 檔案以及每個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告: "The custom JumpStart configuration is ok" 並在 JumpStart 目錄中建立 rules.ok custom_probes.ok 檔。

  4. 判定 custom_probes.ok 檔案是否可以執行。

    • 如果可以執行,請移至 步驟 5

    • 如果不能執行,請鍵入下列指令:

      chmod +x custom_probes

  5. 確定 root 擁有 custom_probes.ok 檔案,並且許可權設定為 755。