?
Solved

Autosys command to get list of failed jobs

Posted on 2010-01-11
2
Medium Priority
?
3,304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 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