Previous Topic

Next Topic

Book Contents

Book Index

Create a job including in and out conditions example

The following example describes a successful Job Creation request that creates a single job including In and Out conditions.

<?xml version="1.0" encoding="iso-8859-1"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

  <SOAP-ENV:Body>

    <ctmem:request_create_aj xmlns:ctmem="http://www.bmc.com/ctmem/schema918">

      <ctmem:user_token>$USER_TOKEN$</ctmem:user_token>

      <ctmem:control_m>ctm3-omega</ctmem:control_m>

      <ctmem:active_job>

        <ctmem:job_name>InCond0</ctmem:job_name>

        <ctmem:mem_name>InCond0</ctmem:mem_name>

        <ctmem:task_type>command</ctmem:task_type>

        <ctmem:application>InCond</ctmem:application>

        <ctmem:sub_application>InCond</ctmem:sub_application>

        <ctmem:max_wait>0</ctmem:max_wait>

        <ctmem:prevent_nct2>no</ctmem:prevent_nct2>

        <ctmem:time_from>0800</ctmem:time_from>

        <ctmem:critical>no</ctmem:critical>

        <ctmem:cyclic>no</ctmem:cyclic>

        <ctmem:confirm_flag>yes</ctmem:confirm_flag>

        <ctmem:auto_archive>no</ctmem:auto_archive>

        <ctmem:sys_db>no</ctmem:sys_db>

        <ctmem:arch_max_days>0</ctmem:arch_max_days>

        <ctmem:arch_max_runs>0</ctmem:arch_max_runs>

        <ctmem:rerun_max>0</ctmem:rerun_max>

        <ctmem:command>ls -l</ctmem:command>

        <ctmem:in_conditions>

          <ctmem:in_condition>

            <ctmem:condition>ctm600a0</ctmem:condition>

            <ctmem:date>ODAT</ctmem:date>

            <ctmem:and_or>and</ctmem:and_or>

          </ctmem:in_condition>

        </ctmem:in_conditions>

        <ctmem:out_conditions>

          <ctmem:out_condition>

            <ctmem:condition>ctm600a0</ctmem:condition>

            <ctmem:date>ODAT</ctmem:date>

            <ctmem:sign>delete</ctmem:sign>

          </ctmem:out_condition>

        </ctmem:out_conditions>

      </ctmem:active_job>

    </ctmem:request_create_aj>

  </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Parent Topic

Job creation examples