判斷遠端weblogic連線到tuxedo域指令碼已經完成,檢查連線到這台主機遠端weblogic域的情況。如果這台主機鏈結都為空,或者某個鏈結為空,則需要在weblogic段進行wtc重連。附件是weblogic和tuxedo 的配置對應情況。可以對照。
#!/bin/sh
begin=1
end=4
i=$begin
ip=`ifconfig -a |grep inet |grep 10.182 |awk ''`
echo >dmadmin.txt
while [ $i -le $end ];
doecho "***************鏈結到主機$的crm_ainbs$的鏈結如下(如果為cmdgw_cat:2077則沒用鏈結連到此domain)**********=">>dmadmin.txt
echo "pd -d crm_ainbs$"|dmadmin | awk '/local/,/disconnected/' >>dmadmin.txt
echo "**********====鏈結到主機$鏈結到crm_acct$的鏈結如下,如果為cmdgw_cat:2077則沒用鏈結連到此domain*************">>dmadmin.txt
echo "pd -d crm_acct$"|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
>
判斷是POST GET請求 判斷是AJAX請求
1.判斷是post get請求 這個大家都知道了,就是 server request method 返回使用者的請求方式 i.e.get head post put eg 2.判斷是ajax請求 框架中頻繁用到 server http x requested with 來判斷是否ajax提交.其實 ...
判斷是否是閏年
使用者輸入月份,判斷當前月份為幾月,並輸出有多少天。如果使用者輸入2月份,則請使用者輸入年份,判斷平年則輸出28天,閏年則輸出29天。能被4整除但不能被100整除,或者能被400整除 months input 請輸入當前月份 while notmonths.isdigit or int months...
判斷是否是素數
第一次嘗試 define crt secure no warnings include include intisprimenum int num for int i 2 i num i return1 int main else for int i 100 i 200 i return0 此 利用...