How to list autosys detail jobs?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to list autosys detail jobs?
# 1  
Old 04-09-2018
How to list autosys detail jobs?

Hi Gurus,
below list is autosys job output stats, it includes boxes, sub-boxes and detail jobs. detail jobs are most right indented ones in each box. the requests is to get all these detail jobs list.

the only way to identify the "detail job", is intend.

Code:
 auto_job                                                 03/13/2018 20:55:04  03/14/2018 15:25:51  SU 82598250/1    
  auto_joba                                               03/27/2018 14:33:08  03/27/2018 14:46:38  SU 82598250/2    
   auto_joba-bx                                          03/13/2018 20:55:08  03/14/2018 15:25:53  OI 82598250/1    
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1      
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0    
  auto_jobt                                               -----                -----                IN 82598250/0    
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0

want to list below jobs:

Code:
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0   
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0


Last edited by green_k; 04-09-2018 at 10:22 PM..
# 2  
Old 04-09-2018
Methinks you mean "indent", and you want to suppress all entries with one or two spaces indentation? Why is auto_joba-bx (three leading spaces) missing in your sample result? How far would
Code:
awk '/^   +/' file
   auto_joba-bx                                          03/13/2018 20:55:08  03/14/2018 15:25:53  OI 82598250/1    
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1      
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0    
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0

get you?
This User Gave Thanks to RudiC For This Post:
# 3  
Old 04-09-2018
Quote:
Originally Posted by RudiC
Methinks you mean "indent", and you want to suppress all entries with one or two spaces indentation? Why is auto_joba-bx (three leading spaces) missing in your sample result? How far would
Code:
awk '/^   +/' file
   auto_joba-bx                                          03/13/2018 20:55:08  03/14/2018 15:25:53  OI 82598250/1    
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1      
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0    
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0

get you?
Thanks RudiC. sorry, I didn't explain it clearly. I attached a screenshot. in the screenshot, you can see, all these with red underlined are boxes, because under each underlined job, you can see there are one or more jobs "indented" to right. there maybe multiple levels (indented), because of box inside box. for example: auto_job is box, inside the job there is another box auto_joba, and another box auto_joba-bx, then detail jobs: auto_joba-bx-pa1, auto_joba-bx-pa2 and auto_joba-bx-pa3.

thanks in advance
How to list autosys detail jobs?-jobspng
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help required in Identifying child jobs in autosys recursively.

I have been working on to neatly present the job dependency lineage in autosys through ksh/perl and I am having trouble in recursively finding the dependency. it will be great if anyone could share their thoughts on this.? I know that job_depends in autosys will help me give first level of... (0 Replies)
Discussion started by: Vhunt
0 Replies

2. UNIX for Dummies Questions & Answers

Refresh the jobs in Autosys Scheduler

Can anyone please tell me how to refresh the jobs in Autosys Scheduler? ---------- Post updated at 03:19 PM ---------- Previous update was at 03:18 PM ---------- I need a command to refresh it. (2 Replies)
Discussion started by: Lakme Pemmaiah
2 Replies

3. UNIX for Dummies Questions & Answers

Autosys jobs

Hi, I have a script that take one parameter as an input. for example: ./clean.sh <foldername> There are 7 different folder names that we can provide to my script and my script would delete the contents of that folder that was passed as an argument. Inorder to have this script... (3 Replies)
Discussion started by: shifahim
3 Replies

4. UNIX for Advanced & Expert Users

Mutually Exclusive Autosys jobs

Hi I have 2 autosys jobs (JobA and JobB) both are in different boxes but part of one big box. I want to make them mutually exclusive so that when JobA is running then JobB should not run and wait for jobA to finish/fail/terminate and vice versa. Both jobs have their own starting conditions... (1 Reply)
Discussion started by: SPJ47
1 Replies

5. Shell Programming and Scripting

How to find out which jobs are referencing my AutoSys variable?

I need to list out all the AutoSys jobs that are referencing a particular AutoSys global variable. I know the autorep command will definitely need to be used here, and maybe grep as well, but I can't figure out exactly how it's to be done. For example, "autorep -q -J %jobnamewildcard% | grep... (1 Reply)
Discussion started by: dazzwater
1 Replies

6. UNIX for Dummies Questions & Answers

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... (5 Replies)
Discussion started by: supragna
5 Replies

7. Shell Programming and Scripting

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... (0 Replies)
Discussion started by: supragna
0 Replies

8. Shell Programming and Scripting

Repeated execution of Autosys Jobs

post deleted ... (2 Replies)
Discussion started by: Data469
2 Replies

9. UNIX for Dummies Questions & Answers

Searching Status for 2 Autosys jobs

I need to search for a failed status of 2 autosys jobs which write to the same logfile. Is there any way to do that on one line? I already know the following doesn't work, but is there a way to get it to work, or will I have to do a loop? RUN_STATUS=autorep -J jobname jobname if then ... (1 Reply)
Discussion started by: tekster757
1 Replies

10. UNIX for Advanced & Expert Users

creating and modifying jobs in autosys

now, I tried looking at the User manuals I can find on the internet concerning autosys but these manuals seem to be quite confusing to me. My question is, does anyone have a straight forward explanation on how to modify and/or create jobs in autosys??? (3 Replies)
Discussion started by: TRUEST
3 Replies
Login or Register to Ask a Question