CA DE Tech Tip: New r12 sp1 jobmap cli command output shows job definition in plain text

Document created by rugst01 Employee on Jun 16, 2017
Version 1Show Document
  • View in full screen mode

jobmap Command - Create a Job Activity Report - CA Workload Automation DE - 12.0 - CA Technologies Documentation 

 

You can create a job activity report by issuing the JOBMAP CLI command. The job activity report contains detailed information about jobs, including job history information and the relationship between jobs. The report can also include the last run information of jobs. You can limit the report to specific Events, Applications, or jobs. You can use the Save log option in the CLI output dialog to save the report as a text file.

 

-> help jobmap

Usage: JOBMAP EVENTS("events") [JOBS("jobs")] [SCHEDULECRITERIA("schedulecriteria")] [DISPLAYFIELDS("displayfields")] [NODISPLAYFIELDS("nodisplayfields")]

 

Display jobmap information including the last run of a job.

 

 

events <string>

        The Event name. If not specified, all Events details are listed. Wildcard characters are permitted. * represents any string of zero or more characters. ? represents any single character.

        Sequence of characters matching regular expression "[\p{L}\p{N}@$_\.\*\?]*".

 

jobs <string>

        The job name(s). If not specified, all jobs details are listed. Wildcard characters are permitted. * represents any string of zero or more characters. ? represents any single character.

        Sequence of characters matching regular expression "[\p{L}\p{N}@$_\.\*\?]*".

 

schedulecriteria <string>

        The schedule statement.

 

displayfields <string>

        A comma separated field list to display in the output.

 

nodisplayfields <string>

        A comma separated field list to skip in the output.

 

Example: Display Information of all Jobs

This example displays information of all jobs that are associated with any of the Events:

jobmap events("*")

Example: Display the Last Run Information of Jobs that Start with WIN

The following examples display the last run information of jobs whose names start with WIN and that are triggered by the SCHEDMASTER.VERIFY Event:

jobmap events("SCHEDMASTER.VERIFY") jobs("WIN*")

The sample output of this command is as follows:

Event Name:SCHEDMASTER.VERIFY

-----------------------------------------------------------

Application Name:VERIFY

===========================================================

  Agent Name:ESP_DEWEBUIDEMO2_7500

  Execution Time(min):59.991684

  Event Schedule:every 30 hours

  Comment:Windows jobs

  Anticipated End Time:16:47:24 Thu 1 Sep 2016

 

***********************************************************

    Job Name:WINNT1

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Successors:WINNT2,WINNT3

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT2),(NORMAL,WINNT3)

    Premature if execution time is less than (in minutes):45

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    Exit Code:ExitCode1(Range(0) State(S)) ExitCode2(Range(1) State(F))

    Life Time(min):29.983334

    Anticipated End Time:16:47:24 Thu 1 Sep 2016

    Do Not Submit Before::16:47:24 Thu 01 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:47:24 Thu 1 Sep 2016

    Overdue if execution time exceeds (in minutes):67

   

 

***********************************************************

    Job Name:WINNT3

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:47:24 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:47:24 Thu 1 Sep 2016

   

 

***********************************************************

    Job Name:WINNT2

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:47:24 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:47:24 Thu 1 Sep 2016

   

 

***********************************************************

    Job Name:WINNT4

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT2,WINNT3

    Run Schedule:DAILY

    Life Time(min):0.0

    Anticipated End Time:16:47:24 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:47:24 Thu 1 Sep 2016

   

 

***********************************************************

Example: Display Information Based on Job Schedule Criteria

This example displays information of jobs that run on the immediate Sunday and that are triggered by the SCHEDMASTER.VERIFY Event:

jobmap events("schedmaster.verify") schedulecriteria("sunday")

The sample output of this command is as follows:

Event Name:SCHEDMASTER.VERIFY

-----------------------------------------------------------

Application Name:VERIFY

===========================================================

  Agent Name:ESP_DEWEBUIDEMO2_7500

  Execution Time(min):60.0

  Event Schedule:every 30 hours

  Comment:Immediate Sunday

  Anticipated End Time:01:00:00 Sun 4 Sep 2016

 

***********************************************************

    Job Name:WINNT1

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Successors:WINNT2,WINNT3

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT2),(NORMAL,WINNT3)

    Premature if execution time is less than (in minutes):45

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    Exit Code:ExitCode1(Range(0) State(S)) ExitCode2(Range(1) State(F))

    Life Time(min):29.983334

    Anticipated End Time:01:00:00 Sun 4 Sep 2016

    Do Not Submit Before::01:00:00 Sun 04 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:01:00:00 Sun 4 Sep 2016

    Overdue if execution time exceeds (in minutes):67

    Last Run:Mon Aug 22 12:41:13 IST 2016

 

***********************************************************

    Job Name:WINNT3

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:01:00:00 Sun 4 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:01:00:00 Sun 4 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:WINNT2

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:01:00:00 Sun 4 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:01:00:00 Sun 4 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:%APPL._NAME

    Job Type:UNIX

    Job Command:/TEST.SH

    Run Schedule:DAILY

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    User Name:root

    Life Time(min):0.0

    Anticipated End Time:00:00:00 Sun 4 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Qualifier:shash14

    Anticipated Start Time:00:00:00 Sun 4 Sep 2016

   

 

***********************************************************

    Job Name:TASK0

    Job Type:TASK

    Agent Name:ESP_DEWEBUIDEMO2_7500

   Execution Time(min):0.0

    Run Schedule:DAILY

    Anticipated Start Time:00:00:00 Sun 4 Sep 2016

    Life Time(min):0.0

    Anticipated End Time:00:00:00 Sun 4 Sep 2016

    Last Run:Wed Aug 24 13:19:01 IST 2016

 

***********************************************************

    Job Name:WINNT4

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT2,WINNT3

    Run Schedule:DAILY

    Life Time(min):0.0

    Anticipated End Time:01:00:00 Sun 4 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:01:00:00 Sun 4 Sep 2016

    Last Run:Mon Aug 22 12:41:15 IST 2016

 

***********************************************************

This example displays information of jobs that run on the next 10 days and that are triggered by the SCHEDMASTER.VERIFY Event:

jobmap events("schedmaster.verify") schedulecriteria("now plus 10 day")

The sample output of this command is as follows:

Event Name:SCHEDMASTER.VERIFY

-----------------------------------------------------------

Application Name:VERIFY

===========================================================

  Agent Name:ESP_DEWEBUIDEMO2_7500

  Execution Time(min):59.988415

  Event Schedule:every 30 hours

  Comment:Next ten days

  Anticipated End Time:16:46:40 Sun 11 Sep 2016

 

***********************************************************

    Job Name:WINNT1

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Successors:WINNT2,WINNT3

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT2),(NORMAL,WINNT3)

    Premature if execution time is less than (in minutes):45

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    Exit Code:ExitCode1(Range(0) State(S)) ExitCode2(Range(1) State(F))

    Life Time(min):29.983334

    Anticipated End Time:16:46:40 Sun 11 Sep 2016

    Do Not Submit Before::16:46:40 Sun 11 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:46:40 Sun 11 Sep 2016

    Overdue if execution time exceeds (in minutes):67

    Last Run:Mon Aug 22 12:41:13 IST 2016

 

***********************************************************

    Job Name:WINNT3

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:46:40 Sun 11 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:46:40 Sun 11 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:WINNT2

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Successors:WINNT4

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:46:40 Sun 11 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:46:40 Sun 11 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:%APPL._NAME

    Job Type:UNIX

    Job Command:/TEST.SH

    Run Schedule:DAILY

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    User Name:root

    Life Time(min):0.0

    Anticipated End Time:15:46:40 Sun 11 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Qualifier:shash14

    Anticipated Start Time:15:46:40 Sun 11 Sep 2016

   

 

***********************************************************

    Job Name:TASK0

    Job Type:TASK

    Agent Name:ESP_DEWEBUIDEMO2_7500

    Execution Time(min):0.0

    Run Schedule:DAILY

    Anticipated Start Time:15:46:40 Sun 11 Sep 2016

    Life Time(min):0.0

    Anticipated End Time:15:46:40 Sun 11 Sep 2016

    Last Run:Wed Aug 24 13:19:01 IST 2016

 

***********************************************************

    Job Name:WINNT4

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT2,WINNT3

    Run Schedule:DAILY

    Life Time(min):0.0

    Anticipated End Time:16:46:40 Sun 11 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:46:40 Sun 11 Sep 2016

    Last Run:Mon Aug 22 12:41:15 IST 2016

 

***********************************************************

Example: Exclude Information About a Specific JOBMAP Keyword

This example excludes information about the job successors and the jobs that are triggered by the SCHEDMASTER.VERIFY Event:

jobmap events("schedmaster.verify") NoDisplayFields("SUCC")

The sample output of this command is as follows:

Event Name:SCHEDMASTER.VERIFY

-----------------------------------------------------------

Application Name:VERIFY

===========================================================

  Agent Name:ESP_DEWEBUIDEMO2_7500

  Execution Time(min):59.986965

  Event Schedule:every 30 hours

  Comment:exclude job successors

  Anticipated End Time:16:45:19 Thu 1 Sep 2016

 

***********************************************************

    Job Name:WINNT1

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT2),(NORMAL,WINNT3)

    Premature if execution time is less than (in minutes):45

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    Exit Code:ExitCode1(Range(0) State(S)) ExitCode2(Range(1) State(F))

    Life Time(min):29.983334

    Anticipated End Time:16:45:19 Thu 1 Sep 2016

    Do Not Submit Before::16:45:19 Thu 01 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:45:19 Thu 1 Sep 2016

    Overdue if execution time exceeds (in minutes):67

    Last Run:Mon Aug 22 12:41:13 IST 2016

 

***********************************************************

    Job Name:WINNT3

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:45:19 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:45:19 Thu 1 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:WINNT2

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT1

    Run Schedule:DAILY

    Release Condition:(NORMAL,WINNT4)

    Life Time(min):286.05

    Anticipated End Time:16:45:19 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:45:19 Thu 1 Sep 2016

    Last Run:Mon Aug 22 12:41:14 IST 2016

 

***********************************************************

    Job Name:%APPL._NAME

    Job Type:UNIX

    Job Command:/TEST.SH

    Run Schedule:DAILY

    Auto-Resubmit failed job:RetryCount(0) RetryInterval(0)

    User Name:root

    Life Time(min):0.0

    Anticipated End Time:15:45:19 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Qualifier:shash14

    Anticipated Start Time:15:45:19 Thu 1 Sep 2016

   

 

***********************************************************

    Job Name:TASK0

    Job Type:TASK

    Agent Name:ESP_DEWEBUIDEMO2_7500

    Execution Time(min):0.0

    Run Schedule:DAILY

    Anticipated Start Time:15:45:19 Thu 1 Sep 2016

    Life Time(min):0.0

    Anticipated End Time:15:45:19 Thu 1 Sep 2016

    Last Run:Wed Aug 24 13:19:01 IST 2016

 

***********************************************************

    Job Name:WINNT4

    Job Type:NT

    Job Command:SETEXITC

    Arguments To Pass:0

    Predecessors:WINNT2,WINNT3

    Run Schedule:DAILY

    Life Time(min):0.0

    Anticipated End Time:16:45:19 Thu 1 Sep 2016

    Agent Name:R12SP1AGENT

    Execution Time(min):0.0

    Anticipated Start Time:16:45:19 Thu 1 Sep 2016

    Last Run:Mon Aug 22 12:41:15 IST 2016

 

***********************************************************

 

Attachments

    Outcomes