判断远程weblogic连接到tuxedo域脚本已经完成,检查连接到这台主机远程weblogic域的情况。如果这台主机链接都为空,或者某个链接为空,则需要在weblogic段进行wtc重连。附件是weblogic和tuxedo 的配置对应情况。可以对照。
#!/bin/sh
begin=1
end=4
i=$begin
IP=`ifconfig -a |grep inet |grep 10.182 |awk '{print $2}'`
echo >dmadmin.txt
while [ $i -le $end ];
do
echo "===============链接到主机${IP}的crm_ainbs${i}的链接如下(如果为CMDGW_CAT:2077则没用链接连到此domain)===========">>dmadmin.txt
echo "pd -d crm_ainbs${i}"|dmadmin | awk '/Local/,/Disconnected/' >>dmadmin.txt
echo "==============链接到主机${IP}链接到crm_acct${i}的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain*************">>dmadmin.txt
echo "pd -d crm_acct${i}"|dmadmin | awk '/Local/,/Disconnected/' >>dmadmin.txt
i=`expr $i + 1`
done
具体格式如下:
==============链接到crm_ainbs1的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain===========
> Local domain :crm_ainbs1
Connected domains:
Domainid: local_1012_ainbs2
Domainid: local_1013_ainbs10
Domainid: local_109_ainbs10
Domainid: local_11_149_ainbs4
Disconnected domains being retried:
**************链接到crm_acct1的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain*************
> Local domain :crm_acct1
Connected domains:
Disconnected domains being retried:
==============链接到crm_ainbs2的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain===========
> Local domain :crm_ainbs2
Connected domains:
Domainid: local_1015_ainbs10
Domainid: local_1012_ainbs6
Domainid: local_1010_ainbs10
Domainid: local_1011_ainbs10
Disconnected domains being retried:
**************链接到crm_acct2的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain*************
> Local domain :crm_acct2
Connected domains:
Domainid: local_1012_acct6
Domainid: local_1010_acct6
Domainid: local_1011_acct6
Domainid: local_109_acct6
Disconnected domains being retried:
==============链接到crm_ainbs3的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain===========
> Local domain :crm_ainbs3
Connected domains:
Domainid: local_1013_ainbs2
Domainid: local_1015_ainbs2
Domainid: local_1012_ainbs10
Domainid: local_109_ainbs2
Domainid: local_1010_ainbs2
Domainid: local_1011_ainbs2
Disconnected domains being retried:
**************链接到crm_acct3的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain*************
> Local domain :crm_acct3
Connected domains:
Domainid: local_1010_acct2
Domainid: local_1015_acct2
Disconnected domains being retried:
==============链接到crm_ainbs4的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain===========
> Local domain :crm_ainbs4
Connected domains:
Domainid: local_1011_ainbs6
Domainid: local_1010_ainbs6
Domainid: local_1013_ainbs6
Domainid: local_109_ainbs6
Domainid: local_1015_ainbs6
Domainid: local_11_149_ainbs5
Disconnected domains being retried:
**************链接到crm_acct4的链接如下,如果为CMDGW_CAT:2077则没用链接连到此domain*************
> CMDGW_CAT:2077: ERROR: Specified Local domain crm_acct4 not active or not configured
>
--转自