1.tuxedo的几个常用命令:
tmadmin(进入tuxedo命令)
psc -s IXU00200查找交易号
help进入帮助
tmloadcf编译ubbconfig成二进制tuxedoconfig文件中
2.tuxedo交易强制当掉:
tmboot -c -w1 -y
3.tuxedo在营帐计费系统中的应用:
(1)tt命令的内容:
if test $# -lt 1
then
echo "usage: tt {-A|-S} server_name "
exit 1
fi
if test $1 = -S
then
echo tmshutdown -s $2
tmshutdown -s $2
echo cp $2 $SUNRISE_HOME/app/
cp $2 $SUNRISE_HOME/app/
tmboot -s $2
else
if test $1 = -A
then
echo tmshutdown -s TA_$2 -s YT_$2 -s LW_$2
tmshutdown -s TA_$2 -s YT_$2 -s LW_$2
echo cp *_$2 $SUNRISE_HOME/app/
cp *_$2 $SUNRISE_HOME/app/
echo tmboot -s TA_$2 -s YT_$2 -s LW_$2
tmboot -s TA_$2 -s YT_$2 -s LW_$2
else
echo "usage: tmupdate {-A|-S} server_name "
fi
fi
then
echo "usage: tt {-A|-S} server_name "
exit 1
fi
if test $1 = -S
then
echo tmshutdown -s $2
tmshutdown -s $2
echo cp $2 $SUNRISE_HOME/app/
cp $2 $SUNRISE_HOME/app/
tmboot -s $2
else
if test $1 = -A
then
echo tmshutdown -s TA_$2 -s YT_$2 -s LW_$2
tmshutdown -s TA_$2 -s YT_$2 -s LW_$2
echo cp *_$2 $SUNRISE_HOME/app/
cp *_$2 $SUNRISE_HOME/app/
echo tmboot -s TA_$2 -s YT_$2 -s LW_$2
tmboot -s TA_$2 -s YT_$2 -s LW_$2
else
echo "usage: tmupdate {-A|-S} server_name "
fi
fi
(2)因此都是用了tmboot 和tmshutdown
-A 时认为起sdta的交易,加前缀TA_
-S 时,不加前缀;
-S 时,不加前缀;
如queryUdcA的执行文件是queryUdcA,用tmshutdown -s queryUdcA:
tmboot -s queryUdcA
tmboot -s queryUdcA
而busi193A的执行文件被编译成TA_busi193A,QD_busi193A等17个执行文件,用tmshutdown -s TA_busi193A:
tmshutdown -s QD_busi193A
tmboot -s TA_busi193A
tmboot -s QD_busi193A
tmshutdown -s QD_busi193A
tmboot -s TA_busi193A
tmboot -s QD_busi193A
tmboot,tmshutdown才是tuxedo的东西,tt只不过是写的shell脚本