Home › DevOps › AutoSys: List Only Failed Jobs with autorep
Intermediate 3 min · November 08, 2026

AutoSys: List Only Failed Jobs with autorep

List only failed AutoSys jobs: autorep -J ALL | grep ' FA ', plus TE for terminated jobs.

N
Naren Founder & Principal Engineer

20+ years shipping production infrastructure and CI/CD at scale. Drawn from code that ran under real load.

Follow
✓ Production
production tested
November 08, 2026
last updated
2,128
articles · all by Naren
Before you start⏱ 6 min
  • ✓AutoSys JIL basics
 ● Production Incident 🔎 Debug Guide
⚡Quick Answer
  • Failed only: autorep -J ALL | grep ' FA '
  • Failed or terminated: autorep -J ALL | grep -E ' (FA|TE) '
  • One application: autorep -J FIN% | grep -E ' (FA|TE) '
  • Count: autorep -J ALL | grep -cE ' (FA|TE) '
  • One job's detail: autorep -J JOB -d
  • Keep the spaces around FA so job names containing FA don't match.
✦ Definition~90s read
What is AutoSys?

autorep prints each job with a two-letter status (SU, FA, TE, RU and so on). Filtering that column with grep lists only the failed jobs. FA is FAILURE; TE is TERMINATED (killed, for example by term_run_time or KILLJOB), which also needs attention.

★
autorep is the full guest list.
Plain-English First

autorep is the full guest list. grep ' FA ' hands you only the guests who didn't make it, and adding TE includes the ones who were sent home early.

Thousands of jobs ran overnight and you need the failures. autorep lists everything; a grep on the status column gives you just the failures. Remember TE too.

Filter on Status

autorep -J ALL prints one line per job with its status. grep for the status with spaces around it.

failed.shBASH
1
autorep -J ALL | grep ' FA '
Output
FIN_LOAD_02 11/08/2026 02:00:01 11/08/2026 02:03:12 FA 123456/1 1
GL_POST 11/08/2026 03:00:00 11/08/2026 03:00:09 FA 123512/1 2
🎯 Key Takeaway
grep ' FA ' with spaces.

Include Terminated

TE means the job was killed: term_run_time, KILLJOB or a box terminator. It's a failure for operations.

failed_te.shBASH
1
autorep -J ALL | grep -E ' (FA|TE) '
🎯 Key Takeaway
FA and TE together.

Narrow, Count, Detail

Use a wildcard for one application, -c for a count, and -d for one job's run history.

narrow.shBASH
1
2
3
autorep -J FIN% | grep -E ' (FA|TE) '
autorep -J ALL | grep -cE ' (FA|TE) '
autorep -J GL_POST -d
🎯 Key Takeaway
FIN%, -c, -d.

A Morning Check

Run it from cron or as an AutoSys job and alert when the count isn't zero. For important jobs, alarm_if_fail: 1 raises an alarm the moment they fail.

morning_check.shBASH
1
2
3
4
5
#!/bin/sh
n=$(autorep -J ALL | grep -cE ' (FA|TE) ')
if [ "$n" -gt 0 ]; then
  autorep -J ALL | grep -E ' (FA|TE) ' | mail -s "AutoSys: $n failed" oncall@example.com
fi
🎯 Key Takeaway
Automate it.
● Production incidentPOST-MORTEMseverity: high

The Morning Check That Missed a Killed Job

Symptom
Downstream reports were missing risk figures, but the morning check showed no failures.
Assumption
No FA meant nothing had failed.
Root cause
RISK_CALC hit its term_run_time and was killed, status TE. The check only looked for FA.
Fix
Changed the check to grep -E ' (FA|TE) ' and alerted when the count is non-zero.
Key lesson
  • TE is a failure too.
  • Automate the check and alert on a non-zero count.
Production debug guideFrom list to cause3 entries
Symptom · 01
Need the list
→
Fix
autorep -J ALL | grep -E ' (FA|TE) '
Symptom · 02
Need the exit code
→
Fix
autorep -J JOB -d
Symptom · 03
Need the error
→
Fix
Read the job's std_err_file (autorep -J JOB -q shows the path).
⚙ Quick Reference
4 commands from this guide
FileCommand / CodePurpose
failed.shautorep -J ALL | grep ' FA 'Filter on Status
failed_te.shautorep -J ALL | grep -E ' (FA|TE) 'Include Terminated
narrow.shautorep -J FIN% | grep -E ' (FA|TE) 'Narrow, Count, Detail
morning_check.shn=$(autorep -J ALL | grep -cE ' (FA|TE) ')A Morning Check

Key takeaways

1
grep autorep on ' FA '.
2
Add TE.
3
Wildcard, count, -d detail.
4
Automate the check.

Common mistakes to avoid

2 patterns
×

grep FA without spaces

Symptom
Matches job names like FAX_SEND.
Fix
grep ' FA '.
×

Ignoring TE

Symptom
Killed jobs missed.
Fix
grep -E ' (FA|TE) '.
INTERVIEW PREP · PRACTICE MODE

Interview Questions on This Topic

Q01JUNIOR
How do you list failed AutoSys jobs?
Q01 of 01JUNIOR

How do you list failed AutoSys jobs?

ANSWER
autorep -J ALL | grep ' FA ', and include TE for terminated jobs.
FAQ · 2 QUESTIONS

Frequently Asked Questions

01
What is the AutoSys command to filter only failed jobs?
02
What does TE mean in autorep?
COMPLETE GUIDE
The Complete AutoSys Workload Automation Guide for Engineers →

JIL syntax, sendevent, autorep, box jobs, file watchers, scheduling, HA, security, cloud workload automation, and 22 interview questions — the definitive AutoSys reference for production engineers.

N
Naren Founder & Principal Engineer

20+ years shipping production infrastructure and CI/CD at scale. Drawn from code that ran under real load.

Follow
✓ Verified
production tested
November 08, 2026
last updated
2,128
articles · all by Naren
🔥

That's AutoSys. Mark it forged?

3 min read · try the examples if you haven't

←
Previous
AutoSys Condition on Two Boxes (Lookback)
43 / 49 · AutoSys
Next
Deploying AutoSys JIL to Production Safely
→