How do I generate a list of AutoSys jobs filtered by specific statuses (such as ON_ICE, ON_HOLD, or ON_NOEXEC)?
Workload Automation AE (AutoSys Edition) 24.x
You can filter and list jobs by status using several methods depending on your interface preference:
You can query the WebService via a command-line HTTP client or directly through a web browser. Note that the pipe character (|) represents a logical OR and should be URL-encoded as %7C.
From a command line (Linux/Windows):
curl -X 'GET' 'https://<AEHOST>:9443/AEWS/job?filter=strStatus==ON_ICE%7CstrStatus==ON_HOLD%7CstrStatus==ON_NOEXEC' -k --user "<user>:<password>" -i
From a web browser:
https://<AEHOST>:9443/AEWS/job?filter=strStatus==ON_ICE%7CstrStatus==ON_HOLD%7CstrStatus==ON_NOEXEC
autorep)You can use the standard CLI utility and parse the output using filters. Note that autorep uses 2-character abbreviations for statuses (e.g., OI for ON_ICE, OH for ON_HOLD).
autorep -J ALL | grep -e ' OH ' -e ' OI '
Log in to the WCC UI.
Navigate to the Monitor tab.
Use the advanced search/filter options in the Monitoring view to select the desired job statuses from the status dropdown or criteria fields.
Disclaimer: Direct database queries should be run with care and only as read-only operations.
You can query the ujo_jobst view within the AutoSys database. The internal numeric values for these statuses are 7 (ON_ICE), 11 (ON_HOLD), and 16 (ON_NOEXEC).
SELECT job_name, status FROM ujo_jobst WHERE status IN (7, 11, 16);
Additional Information For a complete listing of job status strings and their corresponding internal numeric values, please consult the product documentation matching your release version: