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

Document ID : KB000011122
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

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

 

Environment:
Product: Workload Automation AE 11.xPlatform: Windows, UNIX, LinuxDatabase: Oracle, Sybase, MS SQL
Answer:

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>'