Home DevOps AutoSys autorep Command — Reporting and Status Checking

AutoSys autorep Command — Reporting and Status Checking

Where developers are forged. · Structured learning · Free forever.
📍 Part of: AutoSys → Topic 20 of 30
The AutoSys autorep command is your primary tool for checking job status, viewing job definitions, and generating reports.
⚙️ Intermediate — basic DevOps knowledge assumed
In this tutorial, you'll learn:
  • autorep is the primary status and reporting command — use it for checking job status, viewing definitions, and generating reports
  • % is the wildcard for job name matching; use it freely
  • -q outputs JIL format — use it to back up job definitions before making changes
✦ Plain-English analogy ✦ Real code with output ✦ Interview questions
⚡ Quick Answer
autorep is like the 'check status' button on a delivery tracking website. You tell it which jobs you want to track (by name or pattern), and it tells you what's happening — whether they're running, succeeded, failed, or waiting.

autorep (short for 'auto report') is the command you'll run dozens of times every day as an AutoSys operator. It's how you check job statuses, view job definitions, and generate reports. Mastering autorep patterns makes you dramatically faster at monitoring and troubleshooting.

Basic autorep usage

The most common use is checking the status of one or more jobs.

autorep_basic.sh · BASH
1234567891011121314151617
# Check a single job
autorep -J daily_report

# Check all jobs (% is the wildcard in AutoSys)
autorep -J %

# Check all jobs matching a pattern
autorep -J eod_%        /* all jobs starting with eod_ */
autorep -J %_extract    /* all jobs ending with _extract */
autorep -J etl_*_load   /* wildcard in middle */

# Check all jobs inside a specific box
autorep -J eod_box%

# Check machine status
autorep -M %            /* all machines */
autorep -M prod-server-01
▶ Output
Job Name Last Start ST Exit
-----------------------------------------------------------
eod_extract 03/19/2026 22:00:03 SU 0
eod_transform 03/19/2026 22:12:47 SU 0
eod_load 03/19/2026 22:29:11 RU --
eod_reporting 03/19/2026 22:00:00 AC --

The -q flag — getting JIL definitions

The -q flag outputs the job definition in JIL format. This is essential for backups, auditing, and creating job templates.

autorep_q.sh · BASH
1234567891011
# Get JIL definition of one job
autorep -J daily_report -q

# Backup all jobs to a file
autorep -J % -q > /backup/all_jobs_$(date +%Y%m%d).jil

# Backup all jobs in a box
autorep -J eod_box% -q > /backup/eod_jobs_backup.jil

# Compare with previous backup (useful for change auditing)
diff /backup/eod_jobs_20260318.jil /backup/eod_jobs_20260319.jil
▶ Output
/* Output: JIL format */
insert_job: daily_report job_type: c
command: /scripts/report.sh
machine: report-server-01
owner: reportuser
date_conditions: 1
days_of_week: all
start_times: "02:00"
🔥
Regular JIL backups are good practiceAutomate autorep -J % -q > /backup/all_jobs_$(date +%Y%m%d).jil as a daily AutoSys job itself. When someone accidentally deletes or corrupts a job, yesterday's backup saves the day.

The -d flag — detailed job information

The -d flag shows all attributes of a job including its current runtime and any active overrides — much more detail than the default status view.

autorep_d.sh · BASH
1234567891011
# Detailed view of one job
autorep -J daily_report -d

# Check prior runs (-run flag)
autorep -J daily_report -run 1    /* previous run */
autorep -J daily_report -run 2    /* run before that */

# Filter by status
autorep -J % -s FA    /* all FAILURE jobs */
autorep -J % -s RU    /* all RUNNING jobs */
autorep -J % -s PE    /* all PEND_MACH jobs */
▶ Output
Job Name: daily_report
Status: SU (SUCCESS)
Exit Code: 0
Start: 03/19/2026 02:00:01
End: 03/19/2026 02:08:43
Runtime: 00:08:42
Machine: report-server-01
Command: /scripts/report.sh
Stdout: /logs/autosys/daily_report.out
FlagWhat it showsExample
(no flag)Basic status: name, last start, status, exit codeautorep -J daily_report
-dDetailed attributes, runtime, overridesautorep -J daily_report -d
-qFull JIL definitionautorep -J % -q > backup.jil
-s STATUSFilter by status codeautorep -J % -s FA
-run NShow N runs back in historyautorep -J myjob -run 1
-MMachine/agent status instead of jobsautorep -M %

🎯 Key Takeaways

  • autorep is the primary status and reporting command — use it for checking job status, viewing definitions, and generating reports
  • % is the wildcard for job name matching; use it freely
  • -q outputs JIL format — use it to back up job definitions before making changes
  • -s filters by status code; -s FA for failures, -s RU for running, -s PE for PEND_MACH

⚠ Common Mistakes to Avoid

  • Forgetting the % wildcard — autorep -J without a name returns nothing; use % for all jobs
  • Not using -q for backups before making bulk changes — saves enormous time if something goes wrong
  • Using autorep -J % in a large environment without filtering — can produce thousands of lines; use -s to filter by status
  • Not using -run to check prior runs when debugging intermittent failures

Interview Questions on This Topic

  • QWhat is the autorep command used for in AutoSys?
  • QWhat does the -q flag do in autorep?
  • QHow do you list all jobs currently in FAILURE status?
  • QHow do you see the previous run's details for an AutoSys job?
  • QWhat wildcard does autorep use for matching job names?

Frequently Asked Questions

What is autorep in AutoSys?

autorep is the AutoSys command-line tool for reporting on job status, viewing job definitions, and checking machine status. It's the primary monitoring tool for AutoSys administrators.

How do I see all AutoSys jobs in FAILURE status?

Use autorep -J % -s FA. The -s flag filters by status code (FA = FAILURE, RU = RUNNING, SU = SUCCESS, PE = PEND_MACH, OH = ON_HOLD).

What does autorep -J jobname -q do?

The -q flag outputs the job definition in JIL format — exactly as it would look if you were writing it in a JIL script. This is used to back up job definitions, create templates, and audit what attributes are currently set.

How do I check what an AutoSys job looked like in its previous run?

Use autorep -J jobname -run 1 to see the previous run, autorep -J jobname -run 2 for the run before that, and so on.

What is the wildcard character in autorep?

The percent sign (%) is the wildcard in AutoSys commands. autorep -J % returns all jobs. autorep -J eod_% returns all jobs starting with 'eod_'. This is consistent across AutoSys commands.

🔥
Naren Founder & Author

Developer and founder of TheCodeForge. I built this site because I was tired of tutorials that explain what to type without explaining why it works. Every article here is written to make concepts actually click.

← PreviousAutoSys sendevent CommandNext →ON HOLD vs ON ICE in AutoSys
Forged with 🔥 at TheCodeForge.io — Where Developers Are Forged