Sun Management Center 4.0 安裝與配置指南

Procedure將代理程式指定給其他伺服器

  1. 以超級使用者身份登入代理程式機器。

  2. 將代理程式重新指定給其他伺服器

    若要將代理程式指定給其他伺服器,您必須使用 es-setup -F 指令設定代理程式。

    鍵入 /opt/SUNWsymon/sbin/es-setup -F

    系統會提示您提供安全性金鑰種子。

  3. 鍵入安全性種子。

    所有 Sun Management Center 程序的通訊均需要使用加密的安全性金鑰。安全性金鑰基於您提供的密碼而產生,您提供的密碼之長度應為 1 到 8 個字元,且不包含空格。系統會將超過八個字元的密碼截短為八個字元。

    確定您鍵入的安全性種子密碼,與依照設定 Sun Management Center步驟 b,進行原始安裝和設定程序過程中所提供的密碼相同。

    1. 鍵入種子密碼,以產生安全性金鑰。

    2. 再次鍵入密碼。

    系統會提示您提供 SNMPv1 社群字串。

  4. 指定 SNMPv1 社群安全性字串。

    此社群字串用於 SNMP 安全性。

    確定鍵入與您在設定 Sun Management Center步驟 c,原始安裝和設定程序期間提供相同的社群字串。

    系統會通知您 Machine-A 已配置為您的 Sun Management Center 伺服器,其中 Machine-A 是目前指定代理程式的目標伺服器之實際名稱。例如:


    Machine-A appears to be configured as your Sun Management Center server.
    Is this correct (y|n|q)

    請鍵入 n。系統會提示您提供 Sun Management Center 伺服器主機名稱。

  5. 鍵入您要重新指定代理程式的目標伺服器主機名稱。

    鍵入伺服器名稱。例如:


    Machine-A appears to be configured as your Sun Management Center server.
    Is this correct (y|n|q) n
    Please enter the Sun Management Center Server Hostname: Machine-B
    

    將會詢問您是否要啟動 Sun Management Center 代理程式。

  6. 啟動代理程式。

    • 如果要立即啟動 Sun Management Center,請鍵入 y

      設定程序檔會使用 es-start -A 來啟動 Sun Management Center。如需有關 es-start 的資訊,請參閱使用 es-start 啟動元件

      另外,有關如何啟動 Sun Management Center 主控台的指示,請參閱啟動主控台

    • 如果您想稍後啟動 Sun Management Center,請鍵入 n。當您準備好啟動 Sun Management Center 時,請參閱第 8 章, 啟動與停止 Sun Management Center

  7. 以超級使用者身份登入原始伺服器。

  8. 鍵入/opt/SUNWsymon/base/sbin/es-servercontrol.sh 指令 。

    • 如果已設定 ESROOT 環境變數,系統會提示您提供 Sun Management Center 伺服器主機名稱。請前往步驟 10

    • 如果尚未設定 ESROOT 環境變數,系統會通知您並提示您提供 ESROOT 目錄。

  9. 指定 ESROOT 目錄。

    ESROOT 環境變數用於指定 Sun Management Center SUNWsymon 目錄的位置。


    The ESROOT environment variable is not set.
     Enter ESROOT [/opt/SUNWsymon]:

    按 Return 鍵以接受顯示的 /opt/SUNWsymon 預設值,或鍵入 SUNWsymon 目錄的完整路徑。

  10. 指定 Sun Management Center 伺服器主機名稱。

    將會提示您伺服器主機名稱。


    Enter the hostname of the Sun Management Center server [Machine-A]:

    按 Return 鍵以接受顯示的預設主機名稱,或者鍵入伺服器主機名稱。此伺服器主機名稱必須是已指定代理程式的原始伺服器名稱。

    將會提示您伺服器連接埠。

  11. 指定 Sun Management Center 伺服器連接埠。

    此伺服器連接埠為 Sun Management Center 伺服器使用的遠端方法呼叫 (RMI) 連接埠。請參閱表 9–3以取得詳細資訊。

    系統會顯示目前的 RMI 連接埠。


    Enter the port of the Sun Management Center server [2099]:

    按 Return 鍵以接受顯示的連接埠,或鍵入 RMI 使用的連接埠。

    系統將提示您提供 Sun Management Center 超級使用者 ID。

  12. 指定超級使用者 ID。

    此超級使用者 ID 是您在原始安裝和設定程序執行期間指定的管理使用者 ID。

    系統會顯示目前的超級使用者 ID。


    Enter the Sun Management Center Superuser ID [esmaster]:

    按 Return 鍵以接受顯示的 ID,或鍵入管理員 ID。

    系統會提示您提供超級使用者密碼。

  13. 鍵入密碼。

    系統會顯示伺服器控制功能清單。

  14. 清除伺服器快取記憶體。

    鍵入 1 以選取 [清除伺服器環境快取記憶體]。例如:


    Select one of the following Server control functions:
    0) View the Server Context Cache
    1) Clear the Server Context Cache
    2) Remove a host from the Server Context Cache
    3) Remove a host:port from the Server Context Cache
    4) View the SNMP OID (Finder and Privacy OID) Cache
    5) Clear the SNMP OID (Finder and Privacy OID) Cache
    6) Remove a host from the SNMP OID (Finder and Privacy OID) Cache
    7) Remove a host:port from the SNMP OID (Finder and Privacy OID) Cache
    8) Remove a host:port from the Cfgserver Engines Table
    9) Exit
    
    Please Enter Your Selection [9]:1
    

    系統即清除伺服器快取記憶體,並再次顯示伺服器控制清單。鍵入 9 結束伺服器控制並返回系統提示符號。