My Informatica Notes
My Informatica Notes
Using pmcmd
pmcmd is a program you use to communicate with the Integration Service. With pmcmd, you can perform some of the tasks that you can also perform in the Workflow Manager, such as starting and stopping workflows and sessions. Use pmcmd in the following modes: Command line mode. You invoke and exit pmcmd each time you issue a command. You can write scripts to schedule workflows with the command line syntax. Each command you write in command line mode must include connection information to the Integration Service. Interactive mode. You establish and maintain an active connection to the Integration Service. This lets you issue a series of commands. You can use environment variables for user names and passwords with pmcmd. You can also use environment variables to customize the way pmcmd displays the date and time on the machine running the Integration Service process. Before you use pmcmd, configure these variables on the machine running the Integration Service process.
Return Codes
In command line mode, pmcmd indicates the success or failure of a command with a return code. Return code 0 indicates that the command succeeded. Any other return code indicates that the command failed. Use the DOS or UNIX echo command immediately after running a pmcmd command to see the return code for the command: In a DOS shell: echo %ERRORLEVEL% In a UNIX Bourne or Korn shell: echo $? In a UNIX C shell: echo $status
By default, pmcmd executes commands in nowait mode. You can configure the wait mode when you run in command line or interactive mode. In command line mode, use the -wait option to run a command in wait mode. In interactive mode, use the setwait or setnowait command before entering subsequent commands.
aborttask
Aborts a task. Issue this command only if the Integration Service fails to stop the task when you issue the stoptask command. The aborttask command uses the following syntax in the command line mode: pmcmd aborttask<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]><<-user|-u> username|<-uservar|-uv> userEnvVar><<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>[<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>][<-folder|-f> folder]<-workflow|-w> workflow[<-runinsname|-rin> runInsName][-wfrunid workflowRunId][-wait|-nowait]taskInstancePath The aborttask command uses the following syntax in the interactive mode: aborttask[<-folder|-f> folder]<-workflow|-w> workflowRunId][-wait|-nowait]taskInstancePath workflow[<-runinsname|-rin> runInsName][-wfrunid
abortworkflow
Aborts a workflow. Issue this command only if the Integration Service fails to stop the workflow when you issue the stopworkflow command. The abortworkflow command uses the following syntax in the command line mode: pmcmd abortworkflow<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]><<-user|-u> username|<-uservar|-uv> userEnvVar><<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>[<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>][<-folder|-f> folder][-wait|-nowait][<-runinsname|-rin> runInsName][-wfrunid workflowRunId] workflow The abortworkflow command uses the following syntax in the interactive mode: abortworkflow[<-folder|-f> folder][-wait|-nowait][<-runinsname|-rin> runInsName][-wfrunid workflowRunId] workflow
connect
Connects the pmcmd program to the Integration Service in the interactive mode. If you omit connection information, pmcmd prompts you to enter the correct information. Once pmcmd successfully connects, you can issue commands without reentering the connection information. connect<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]><<-user|-u> username|<uservar|-uv> userEnvVar><<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>[<<usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>] Note: Use this command in the pmcmd interactive mode only.
disconnect
Disconnects pmcmd from the Integration Service. It does not close the pmcmd program. Use this command when you want to disconnect from an Integration Service and connect to another in the interactive mode. The disconnect command uses the following syntax in the interactive mode: disconnect Use this command in the pmcmd interactive mode only
exit
Disconnects pmcmd from the Integration Service and closes the pmcmd program. The exit command uses the following syntax in the interactive mode: exit Use this command in the pmcmd interactive mode only
getrunningsessionsdetails
Returns the following details for all sessions currently running on an Integration Service: Integration Service status, startup time, and current time Folder and workflow name Worklet and session instance For each running session: task type, start time, run status, first error code, associated Integration Service, run mode, and node name For the mapping in a running session: mapping name, session log file, first error code and error message, number of source and target success and failed rows, and number of transformation error messages Number of sessions running on the Integration Service
The getrunningsessionsdetails command uses the following syntax in the command line mode: pmcmd getrunningsessionsdetails<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]><<-user|-u> username|<-uservar|-uv> userEnvVar><<-password|-p> password|<-passwordvar|pv> passwordEnvVar>[<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>] The getrunningsessionsdetails command uses the following syntax in the interactive mode: getrunningsessionsdetails