|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to list the Autosys jobs thats in failure status using Shell Script
Hello There,
I am pretty much new to Shell Scripting and also to AutoSys. I would like to know how to list the Autosys jobs in FA status using shell scripting. I would like to get an email alert as and when any Autosys job fails. Also, it should give the path of the Log file. Could you please respond to this query at the earliest. Thanks, Supragna |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Quote:
This is urgent request. Could you please help. Wud be great help if anyone can actually give me the code. Best Regards, Supragna |
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
Autosys? Never heared. I could start googling, but I am too lazy
Maybe that Autosys Jobs produce Exit-Codes which you can check in the shell script with "$?". If not null, then send me a mail...What is FA status? Failed? Does Autosys write those stati into some log or... ? |
|
#4
|
|||
|
|||
|
If you are using a shell script in command parameter of AutoSys, check for the exit status and create an alert mechanism based on that.
And do check with your AutoSys support team on alerts and max run alarms. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
How to list the Autosys jobs thats in failure status using Shell Script
You can write a shell script to cut the job name and status. Grep for FA status and email if found one.
ex: count=`autorep -J jobname | cut -c108-109|grep "FA" |wc -l` if [ $count -gt 0 ] then mailx -s "job failed" a@b.com < sample.txt fi Thanks |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
if you want to get all the failure that was run previously. use
autorep -J ALL | grep "FA" |
| Sponsored Links | ||
|
![]() |
| Tags |
| autosys |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script - Finding Autosys job status | venkatesht | UNIX for Dummies Questions & Answers | 1 | 01-10-2012 04:28 AM |
| Trigger a job on autosys failure | ysrinu | Shell Programming and Scripting | 1 | 06-30-2008 10:12 AM |
| How to list the Autosys jobs thats in failure status using Shell Script | supragna | Shell Programming and Scripting | 0 | 06-24-2008 05:21 AM |
| Searching Status for 2 Autosys jobs | tekster757 | UNIX for Dummies Questions & Answers | 1 | 09-19-2007 09:42 AM |
| background jobs exit status and limit the number of jobs to run | GrepMe | Shell Programming and Scripting | 1 | 06-11-2007 06:56 PM |
|
|