This procedure describes how to run the Control-M/EM API with a CLI command. You can run a command that calls the Control-M/EM API XML request and response files. These files include the request/response XML parameters related to the specified operation such as Create folder definition, User registration and Job creation.
NOTE: Control-M/EM API has been deprecated. Use the Control-M Automation API instead.
To run the Control-M/EM API:
emapi_cli [{(-U <emUser> -P <emPass>) | -pf <passwordFile>}] -s <GSRHostName> -arg <request_xml_file> -out <response_xml_file>
NOTE: In the command line, you can use (-U <emUser> -P <emPAss>) OR -pf <passwordFile>.The name service host <hostname> is taken from the config.xml file on the server from where you are running the command line. To configure CLI to work in SSL mode, you must configure the jacorb.properties file as described in Configuring Control-M/EM API JacORB.
Parent Topic |