?
Solved

Autosys command to get list of failed jobs

Posted on 2010-01-11
2
Medium Priority
?
3,583 Views
Last Modified: 2012-05-08
I am looking for a command to get list of failed jobs in autosys

I tried autorep -J $boxname -w  | egrep 'FA'
but this gives boxes in which the jobs are there. I just want to see exact jobs that failed.
0
Comment
Question by:koppcha
2 Comments
 
LVL 5

Accepted Solution

by:
Asr earned 1500 total points
ID: 26283111
count=`autorep -J jobname | cut -c108-109|grep "FA" |wc -l`

if [ $count -gt 0 ]
then
mail -s "job failed" a@b.xx < sample.txt
fi
0
 
LVL 8

Author Closing Comment

by:koppcha
ID: 31675467
It does give box name in addition to job name.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month4 days, 17 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question