create_job_from_library

Creates a job using a library job as a template. This verb supports multi-task jobs.

Format

emcli create_job_from_library
    -lib_job_name="library_job_name"
    -name="new_job_name"
   [-owner="library_job_owner"]
   [-input_file=property_file:"filename"]
   [-appendtargets]

[ ]  indicates that the parameter is optional

Options

  • lib_job_name

    Library job to use as a template.

  • owner

    Owner of the job. When this option is not specified, the default job owner is the logged in Enterprise Manager administrator.

  • name

    Name of the new job to be created. You can also specify the name in the property file. If no name is specified, a name is generated from the name of the library job.

  • input_file

    "filename" can be provided to load the properties for creating the job.

    If you specify a property file, the values in the property file override or append to existing values in the library job. If you do not specify a property file, the library job is submitted unchanged.

    For more information about the input_file option, see -input_file Syntax Guidelines.

  • appendtargets

    Appends targets in the property file to existing targets in the library job. Otherwise, library job targets are overwritten by targets in the property file if they are specified.

Examples

Example 1

This example creates a job named MYJOB based on the library job MYLIBJOB1.

emcli create_job_from_library -lib_job_name=MYLIBJOB1 -name=MyJob

Example 2

This example creates a job named MYJOB2 based on the library job MYLIBJOB1. Properties in /tmp/myjob1_prop.txt will override library job settings.

emcli create_job_from_library -lib_job_name=MYLIBJOB1 -name=MyJob2 -input_file=property_file:/tmp/myjob1_prop.txt