在已抄寫的 ClearQuest 資料庫上搭配多個 ClearQuest 資料庫的 EmailRelay 應用程式

當抄寫 IBM® Rational® ClearQuest® 資料庫時,您必須對 cqemailrelay.pl Perl Script 指定 -replicaname 參數。然後,您要在已對 EmailPlus 啟用 ClearQuest 資料庫的每一個網站中執行 cqemailrelay.pl。
小心:-relaycfgdir 使用相同的值,這點很重要。否則,會建立新的 cqemailrelay_cfg.xml 檔案,而其中只包含新資料庫的配置參數。
小心: 您必須使用 -replicaname 參數來指定您要配置 EmailRelay 的抄本名稱。如果您省略這個參數,EmailRelay 就不能在「PostOffice 中繼」模式中運作。
這個範例顯示如何在兩個網站(一個叫做 Littleton,另一個叫做 Beijing)設定及配置 EmailRelay。在每一個網站上,要設定兩個 ClearQuest 資料庫:SAMPL 和 TEST。首先,請在 Littleton 網站對 SAMPL ClearQuest 資料庫執行這個指令:
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Littleton -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice 
接下來,請在 Littleton 網站對 TEST ClearQuest 資料庫再次執行 Perl Script:
cqperl cqemailrelay.pl -dbset EmailPlus -userdb TEST -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Littleton -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice 
最後,在 Beijing 網站重新執行先前的指令。
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Beijing -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice 

cqperl cqemailrelay.pl -dbset EmailPlus -userdb TEST -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Beijing -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice 

Feedback