Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

First set the informatica bin directory in PATH Do these in .bashrc or .kshrc or .shrc PATH=/u01/Informatica/9.0.1/server/bin:$PATH export PATH LD_LIBRARY_PATH=/u01/Informatica/9.0.

1/server/bin: $LD_LIBRARY_PATH export LD_LIBRARY_PATH PATH=/u01/Informatica/9.0.1/tomcat/bin:$PATH export PATH INFA_HOME=/u01/Informatica/9.0.1 export INFA_HOME Then run pmcmd startworkflow -sv <Integration Service Name> -d <Domain Name> -u <Integrat ion Service Username> -p <Password> -f <Folder Name> <Workflow> That's it, now you can monitor the workflow progress in Workflow Monitor. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------When you use pmcmd, you might use some commands with specific options and argume nts on a regular basis. For example, you might use pmcmd to check the status of the Integration Service. In this case, you can create a script or batch file to call one or more pmcmd commands including its options and arguments. You can run scripts in command line mode. You cannot run pmcmd scripts in intera ctive mode. For example, the following UNIX shell script checks the status of Integration Se rvice "testService," and if it is running, gets details for session "s_testSessi onTask": #!/usr/bin/bash # Sample pmcmd script # Check if the service is alive pmcmd pingservice -sv testService -d testDomain if [ "$?" != 0 ]; then # handle error echo "Could not ping service" exit fi # Get service properties pmcmd getserviceproperties -sv testService -d testDomain if [ "$?" != 0 ]; then # handle error echo "Could not get service properties" exit fi # Get task details for session task "s_testSessionTask" of workflow # "wf_test_workflow" in folder "testFolder" pmcmd gettaskdetails -sv testService -d testDomain -u Administrator -p adminPass -folder testFolder -workflow wf_test_workflow s_testSessionTask if [ "$?" != 0 ]; then # handle error echo "Could not get details for task s_testSessionTask" exit fi

You might also like