Use the following command and qualifier to determine whether the Source Server is running.
Command syntax:
mupip replicate -source -checkhealth [-instsecondary=<instance_instance>] [-he[lpers]]
Qualifiers:
Determine whether the Source Server is running. If the Source Server is running, the exit code is 0 (zero). If the Source Server is not running or an error exists, the exit code is not 0.
With helpers specified, -checkhealth displays the status of Helper Processes in addition to the status of Receiver Server and Update Process.
-instsecondary=<instance_name>
Identifies a Source Server process.
If -instsecondary is not specified, -checkhealth checks all Source Server processes.
Example:
$ mupip replic -source -checkhealth -inst=INSTB Fri May 21 15:26:18 2010 : Initiating CHECKHEALTH operation on source server pid [15511] for secondary instance name [INSTB] PID 15511 Source server is alive in ACTIVE mode $ mupip replic -source -checkhealth -inst=INSTB Fri May 21 15:29:52 2010 : Initiating CHECKHEALTH operation on source server pid [0] for secondary instance name [INSTB] PID 0 Source server is NOT alive %GTM-E-SRCSRVNOTEXIST, Source server for secondary instance INSTB is not alive