:
Script: Wrapper to start PC, IDQ, MM Jobs
Universal wrapper script that you can use to execute Informatica processes in PowerCenter,
Metadata Manager and Data Quality.
https://community.informatica.com/solutions/2235
PowerCenter 9.1 and 9.5
Informatica includes command line programs that you can use to complete tasks from any machine in the Informatica environment. Some command line programs allow you to run
Informatica jobs without logging into client tools.
For example: pmcmd StartWorkflow - Starts a PowerCenter workflow. infacmd ms RunMapping - Runs a mapping that is deployed to a Data Integration Service mmcmd purge/load – Performs Metadata Manager tasks
The wrapper script in this block can be used to perform multiple command line task listed in the example.
It expects following variables to be set in script:
ADMUSER - domain user name
ADMPASS - password
Depending on the first argument (1) passed, script works in following modes:
IPC - PowerCenter workflows execution
IMM - Metadata Manager Resources Management
IDQ - Data Quality profiling and scorecards
Following parameters depends on mode selected by first argument:
IPC
(2) - domain name
(3) - integration service name
(4) - folder name
(5) - workflow name
IMM
(2) - action: load, purge, assignParameterFile, or assignConnection
(3) - service URL address
(4) - metadata resource name, complete
(5) - resource configuration file (rcf), optional (used only if action is assignParameterFile, or assignConnection)
IDQ
(2) - domain name
(3) - data integration service name
(4) - project name
(5) - object name to be executed (profile of scorecard)
(6) - model repository name
Note: In IDQ mode, wrapper assumes that profiling objects prefix is "Profile_" and scorecard objects "Scorecard_". If needed, it can be easily parameterized as well - passing object type to be executed, and let the name independent.
1.
Script
1.
Provide the path in the script for ArqLog and TmpLog of suitable location.
2.
Ensure that the correct path is set in the script for the following variables a.
RunCommand_IMM
#Infa_Installation/9.1/services/MetadataManagerService/utilities/mmcmd/ mmcmd.sh” b.
RunCommand_IDQ
#Infa_Installation/9.1/server/bin/infacmd.sh”
3.
Provide the appropriate Username and Password in each mode for the ParamUser and ParamPass variables respectively.
4.
Depending on the first parameter passed, the script works in following modes: a.
IPC : If you pass IPC as the first parameter then you need to specify the following parameters also,
domain name as the second parameter
integration service name as the third parameter
folder name as the fourth parameter
workflow name as the sixth parameter
Following is the figure, showing the parameter passing b.
IMM : If you pass IMM as the first parameter then you need to specify the following parameters also,
action (load, purge, assignParameterFile or assignConnection)as 2 nd
parameter service URL address as 3 rd parameter
5.
metadata resource name (complete) as 4 th parameter
resource configuration file (rcf) as 5 th parameter, optional (used only if action is assignParameterFile, or assignConnection) c.
IDQ : If you pass IDQ as the first parameter then you need to specify the following parameters too,
domain name as 2 nd parameter
data integration service name as 3 rd parameter
project name as 4 th parameter
object name to be executed (profile of scorecard) as 5 th parameter
model repository name as 6 th parameter
Observe the output when IPC is passed as first parameter:
Follow the similar procedure of parameter passing for IMM and IDQ with respective.
6.
Provide your feedback for this solution on Solution URL .
Mapping Bundles
Workflow Bundles
Informatica Tools Bundles
Informatica for Social Media Bundles
Debugging Tools Bundles
Visio Templates Bundles
B2B Templates and Projects Bundles
Data Quality Packs and Plans Bundles
Script Bundles