TUXEDO 管理命令簡介--轉載

gaoyj1973發表於2008-07-28
1.tmadmin命令的printserver(簡寫為psr)的簡單輸出。
列號 描述
1. 服務的可執行檔名
2. 服務連線的佇列名
3. 組名
4. 服務的數字id
5. 服務已經處理的請求數
6. 服務處理的全部請求的引數和
服務正在處理的交易,若為IDLE則服務當前是空閒
ccsmis:/home2/ccsmis>tmadmin
tmadmin - Copyright (c) 1996 BEA Systems, Inc.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by BEA Systems, Inc.
Tuxedo is a registered trademark.

> printserver
Prog Name <wbr> <wbr> <wbr> <wbr> <wbr> Queue Name <wbr> Grp Name <wbr> <wbr> <wbr> <wbr> <wbr> ID RqDone Load Done Current Service
--------- <wbr> <wbr> <wbr> <wbr> <wbr> ---------- <wbr> -------- <wbr> <wbr> <wbr> <wbr> <wbr> -- ------ --------- ---------------
rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 00004.04000 APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 ( <wbr> IDLE )
BBL <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 70020 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> 1 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 50 ( <wbr> IDLE )
IFMTMS <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> APGP2_TMS <wbr> <wbr> APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> 30001 <wbr> <wbr> <wbr> <wbr> <wbr> 1 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 50 ( <wbr> IDLE )
ftpserv32 <wbr> <wbr> <wbr> <wbr> <wbr> 00002.00001 FTPGP <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 1 <wbr> <wbr> <wbr> <wbr> 60 <wbr> <wbr> <wbr> <wbr> <wbr> 3000 ( <wbr> IDLE )
WSL <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 00001.00001 SYSGP <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 1 <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 ( <wbr> IDLE )
IFMTMS <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> APGP2_TMS <wbr> <wbr> APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> 30002 <wbr> <wbr> <wbr> <wbr> 12 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 600 ( <wbr> IDLE )
ftpserv32 <wbr> <wbr> <wbr> <wbr> <wbr> 00002.00002 FTPGP <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 2 <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 ( <wbr> IDLE )
IFMTMS <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> APGP2_TMS <wbr> <wbr> APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> 30003 <wbr> <wbr> <wbr> <wbr> 11 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 550 ( <wbr> IDLE )
CCS_QUANBIA_60 00004.06004 APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 6004 <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 ( <wbr> IDLE )
CCS_SCBB_4099 <wbr> 00004.04099 APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 4099 <wbr> <wbr> <wbr> <wbr> <wbr> 2 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 100 ( <wbr> IDLE )
CCS_GEKEZI_300 00004.03000 APGP2 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 3000 <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 ( <wbr> IDLE )

交易資訊
來自GAI的資訊本處略去。
2.tmadmin命令的printservice(簡寫為psc)的簡單輸出。
列號 描述
1. 交易名
2. 交易函式名
3. 服務可執行檔名
4. 服務所在組名
5. 服務的數字id
6. 提供交易的機器的LMID
7. 交易已經執行的次數
8. 交易當前狀態
Service Name Routine Name Prog Name <wbr> Grp Name <wbr> ID <wbr> <wbr> <wbr> Machine <wbr> # Done Status
------------ ------------ --------- <wbr> -------- <wbr> -- <wbr> <wbr> <wbr> ------- <wbr> ------ ------
416701 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416601 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416501 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416401 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416201 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416301 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416101 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
416001 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
415901 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> <wbr> <wbr> rz_Ecsb <wbr> <wbr> <wbr> APGP2 <wbr> <wbr> 4000 <wbr> <wbr> <wbr> <wbr> simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 AVAIL
:

佇列資訊
3.tmadmin命令的printqueue(簡寫為pq)[qaddress]的簡單輸出。如果不指定address,所有佇列資訊將被輸出。
列號 描述
1. 佇列連線的服務的可執行檔名
2. 字元佇列名,是RQADDR引數或一個隨機值
3. 連線的服務數
4. 當前佇列的所有請求的引數和
5. 實際請求數
6. 平均佇列長度
7. 佇列所在機器的LMID
> pq 00004.05062
Prog Name <wbr> <wbr> <wbr> <wbr> <wbr> Queue Name <wbr> # Serve Wk Queued <wbr> # Queued <wbr> Ave. Len <wbr> <wbr> <wbr> Machine
--------- <wbr> <wbr> <wbr> <wbr> <wbr> ------------------- --------- <wbr> -------- <wbr> -------- <wbr> <wbr> <wbr> -------
CCS_GEDAIPC_50 00004.05062 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 1 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0.0 <wbr> <wbr> <wbr> <wbr> simple

客戶端資訊
來自GAI的資訊本處略去。
4.tmadmin命令的printclient(簡寫為pclt)的輸出,來自TUXEDO系統的日誌資訊。主要有以下資訊:
客戶端id,使用者名稱和當前狀態
登入的LMID和程式號(PID)
服務組和上一訪問過的服務組
交易(啟動/提交/中斷)和會話的統計數字
中繼佇列id,通知方法和提交控制
列號 描述
1. 已經登入的客戶端機器的LMID
2. 使用者名稱,由tpinit()提供的
3. 客戶端名,由tpinit()提供的
4. 客戶端連線後經過的時間
5. 客戶端狀態
6. IDLE――表示客戶端目前沒有任何交易在工作
7. IDLET――表示客戶端啟動了一個交易
8. BUSY――表示客戶端在工作中
9. BUSYT――表示客戶端正在交易控制下工作
10. 啟動/提交/中斷的交易數
> pclt
<wbr> <wbr> <wbr> <wbr> LMID <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> User Name <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> Client Name <wbr> <wbr> <wbr> Time <wbr> <wbr> <wbr> Status <wbr> Bgn/Cmmt/Abrt
--------------- --------------- --------------- -------- ------- -------------
simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> ccsmis <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> WSH <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 17:42:47 IDLE <wbr> <wbr> <wbr> 0/0/0
simple <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> ccsmis <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> tmadmin <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 0:44:28 IDLE <wbr> <wbr> <wbr> 0/0/0

用tmadmin寫指令碼
輸出所有服務/交易/佇列資訊
$tmadmin 2>&1<echo
verbose
psr
psc
pq
!
掛起bankapp內所有AUDIT交易
(tmadmin 2>&1 <pq
!
) |
awk ‘BEGIN { print “tmadmin <{if ( $1 == “AUDIT”) print “susp ?q” , $2, “-S $1”}
END {print “qn!”}’ |
/bin/sh[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267897/viewspace-1007999/,如需轉載,請註明出處,否則將追究法律責任。