從 UNIX 系統移除「Rational 授權伺服器」軟體

從伺服器移除 Rational® 授權伺服器軟體的步驟。

移除 IBM Rational 授權伺服器軟體之前

透過 IBM Rational 授權碼中心(這是一種線上授權管理工具), 將授權碼傳回 IBM Rational 帳戶。如需移動或傳回授權的相關資訊,請參閱在 UNIX 系統伺服器上移動或移除授權碼

移除 Rational 授權伺服器軟體

關閉授權伺服器有三個選項。請嘗試使用第一個選項來關閉授權伺服器。如果該選項沒有作用,請繼續進行下一個選項,直到授權伺服器關閉, 或是已使用最後一個選項為止。
  1. 使用位於 rational_dir/config 目錄的 start_lmgrd_on_server Script。 針對 server 變數,請使用授權伺服器機器的主機名稱。
    cd /opt/rational/config
    ./start_lmgrd_on_server stop
  2. 如果 start_lmgrd_on_server Script 無法使用, 請使用 lmdown 指令。lmdown 指令係安裝在 rational_dir/base/cots/flexlm.version/platform目錄中。
    註: 如果 lmdown 指令位於指令搜尋路徑中,您就可以使用該指令。如果指令不在指令搜尋路徑中, 您會從 Shell 收到一則錯誤,指出找不到該指令。
    rational_dir/base/cots/flexlm.version/platform/lmdown -c [port@host |licnse-file]

    lmdown 指令的範例(使用 /opt/rational 取代 rational-dir, 7.0f 取代 version,以及 sun4_solaris2 取代 platform):

    # 指定 port@host 的 lmdown:

    /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2/lmdown -c 27000@pluto

    # 指定授權檔的 lmdown:

    /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2/lmdown -c /opt/rational/config/rational.dat

  3. 如果 lmdown 指令無法運作,請使用 UNIX 系統的 kill 指令。首先,使用 ps -e 指令找出 lmgrd 程序。 然後使用 kill pid 指令。 如果 kill pid 無法運作,請使用 kill -9 pid 指令。
    小心: kill -9 pid 指令會在 /usr/tmp/lock* 中留下鎖定檔,您必須加以移除。
    範例:

    % ps -e | grep lmgrd #

    傳回:331 ? 0:15 lmgrd

    % kill 311 其中 311 是 lmgrd 的程序 ID。

    % ps -e | grep lmgrd #

    傳回:331 ? 0:15 lmgrd

    假設 lmgrd 程序仍在執行中:

    % kill -9 311

    如果要移除 kill -9 pid 指令所建立的鎖定檔和控制檔:

    rm -fr /usr/tmp/lock* /usr/tmp/.flexlm

如果要移除授權伺服器和公用程式:
  1. 切換至目錄:
    cd rational-dir/base/cots/flexlm.version/platform
  2. 如果要從某個平台刪除授權伺服器:
    rm -fr rational_dir/base/cots/flexlm.version/platform
  3. 如果要從所有平台刪除授權伺服器:
    rm -fr rational_dir/base/cots/flexlm.version

    使用 /opt/rational 取代 rational-dir,7.0f 取代 version, 以及 sun4_solaris2 取代 platform 的範例:

    一個平台:rm -fr /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2

    所有平台:rm -fr /opt/rational/base/cots/flexlm.7.0f

    所有版本和平台:rm -fr /opt/rational/base/cots/flexlm.*


意見