Solaris 9 4/04 安裝指南

驗證 custom_probes 檔案

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

表 28–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 DVD 或 Solaris 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 程序檔來驗證 custom_probes 檔案,而不要使用您所用系統的 check 程序檔。path 是本機磁碟、裝載的 Solaris DVD 或 Solaris Software 1 of 2 CD 上的影像。

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

    -r file_name

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

    檔案 check 程序檔執行時,此程序檔會報告 rules 檔案、custom_probes 檔案以及每個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告:「自訂 JumpStart 配置正確」,並在 JumpStart 目錄中建立 rules.ok 檔案與 custom_probes.ok 檔案。

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

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

    • 如果不可以,請鍵入以下指令:


      # chmod +x custom_probes
      

  5. 確保超級使用者擁有 custom_probes.ok 檔案,並且許可權已設定為 755。