2011年5月17日

fglWrt - 查詢 Tiptop 線上使用人數和狀況

要如何查詢目前有誰在 TIPTOP 系統線上呢?
還有目前總共有多少人在用,
當上線人數已滿的話,要如何把沒有在使用的 User 踢掉呢?

我想這個是 Tiptop 系統維護人員有時會很頭大吧!

fglWrt 指令可以做到以上這幾個問題喔~~
以下是 fglWrt 的所有參數:

Usage  : fglWrt [options]
 -l [license]: Installs a license.
 -v|-V       : Shows version information.
 -u          : Checks active users.
 -k key      : Installation key for license validation.
 -d          : Deletes current license.
 -i          : Clears the list of registered user sessions.
 -a opt      : Check or view options, possible options are:
               ps           : Shows processes on this machine.
               env          : Shows current environment.
               cpu          : Shows number of CPU in the computer.
               hostname     : Shows name of this machine.
               info license : Shows license information.
               info stat    : Shows statitics of license server.
               info users   : Shows all registered active users.
               info up      : Shows if license server is up.

查詢目前的線上人數和使用者:
fglWrt -a info users

要踢掉沒有在使用的 User :
fglWrt -i  

注意:我是直接使用這個指令,把 session 全部清除,正在 key 單的人會跳開,
所以執行前需看有沒有人 lock table 才能執行。
只是清除 server 上 genero 的 session 數而已,
所以不會影響已登入的 User (不會斷線或關閉程式),
這時就通知比較好的 User 快搶 session 吧~~~

3 則留言:

  1. 請問我系統執行fglWrt出現錯誤訊息
    # /opt/fgl2c.run/bin/fglWrt -a info users

    Cannot load factory profile file '/usr/fgl2c/etc/fglprofile'.

    fglprofile 要去哪裡找? 感謝您抽空回答

    回覆刪除
  2. 詳細的路徑是在 /u1/genero.run/bin ,
    或是 genero 的版本差異的不同吧~~

    在 user profile 裡面有定義 FGLDIR 的路徑。
    試試看吧

    回覆刪除