What autosys command shows all jobs defined to a specific machine?
search cancel

What autosys command shows all jobs defined to a specific machine?

book

Article ID: 11122

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction



What autosys command will show all jobs defined to a specific machine?

 

Environment

Workload Automation AutoSys

Resolution

The autorep command can list jobs and machines but there is no option that specifically would provide a complete list of job defined filtered by a specific machine name. 

Recommended options are:

 

Write a custom program using AutoSys SDK. 

For details on the APIs please refer to the guide: 

CA Workload Automation AE API Reference Guide r11.3 

Specifically research API(s) GetJobsWithFilter* and JobFilter* 

UNIX: 

autorep -J ALL -q 

and grep for "_job: " and "machine: " 

Windows: 

autorep -J ALL -q 

and findstr for "_job: " and "machine: " 

Query the database 

example: 

select job_name, run_machine 

from ujo_jobst 

where run_machine = '<machinename>'