autorep command cut longer jobnames. Anybody into autosys / autorep?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting autorep command cut longer jobnames. Anybody into autosys / autorep?
# 1  
Old 04-04-2006
Data autorep command cut longer jobnames. Anybody into autosys / autorep?

Hi there,

my problem is, that i need to get all jobs with status from a autosys instance.

If I use

autorep -J ALL -d >joblist.txt

longer Jobnames will be cut and the end will be replaced by 3 points like this

"ThisIsALongerJobNameAnd..."

If i try a single job query like

autorep -J ThisIsALongerJobNameAndINeedHimComplet -d

the jobname in the output is ok.

Also when I do a

autorep -J ALL -q >list.txt

I get all jobs, without cut, but without detailed status to..




I can't do a loop to query job after job because this need 10-20 minutes for all jobs and i will miss job status between that.

I play with the parameter -L but no difference to see.


so my finaly question is:

did anybody know a solution, how to get all jobs with status in one way without cutted details in the output Smilie ? (or how to speed up the thing)

Regards

drmaniac.
# 2  
Old 04-06-2006
I think your best bet would be to directly query the Oracle or Sybase Database behind the Autosys application.
# 3  
Old 12-01-2006
Hi ,

Just in case you haven't got the solution ....use "-w" option of autorep command
# autorep -J <job name> -w

This will not truncate the output with "..."

-Pankaj

Last edited by pankajdharmik; 12-01-2006 at 07:46 AM.. Reason: solution
# 4  
Old 12-01-2006
Try (Autosys 4.5/maybe 4.0) :

Code:
autorep -J JOBNAME -w -d

Regards
# 5  
Old 12-01-2006
Hi KLASH
I am using AUTOSY 4.5 but i won't see what this -w option will do can u tell me ??

here are the listed option in autosys 4.5 for autorep man pages
autorep {-J job_name | -M machine_name |-G global_name} [-s
| -d | -q | -o over_num] [-r run_num][-L print_level] [-
t][-D data_server:database | -D TNSname]

where is w??
# 6  
Old 12-01-2006
Hi ,

Autosys 4.5 has -w option .....see below

server1% autoflags -a
G1 SOLAR ORA 4.5 0 8309e4a9 server1
server1%
server1% autorep
Usage: [-J JobName] <-d | -s | -q | -o [OverRide #] | -w>
[-r run_num] [-L Print Level] [-x]
[-G GlobalName] [-M MachineName] [-D TNS_alias_name]
IF OverRide# = 0, it will display OverRide Currently in Effect.

Error in command line for autorep.
JobName OR OR GlobalName OR MachineName is required.
server1%



-Pankaj
# 7  
Old 12-01-2006
Let me show you an example:
Code:

$ autorep -J JFLCALAUTO_JBCRHTCO_DMCOPERATI%

Job Name                         Last Start            Last End        ST  Run  Pri/Xit
____________________________ ____________________ ____________________ __ _______ ___

JFLCALAUTO_JBCRHTCO_DMCOPERATI... 11/30/2006  23:16:00 11/30/2006  23:16:01 SU 1981376/1    
$ autorep -J JFLCALAUTO_JBCRHTCO_DMCOPERATI% -w

Job Name                                                             Last Start            Last End        ST  Run  Pri/Xit
________________________________________________________________ ____________________ ____________________ __ _______ ___

JFLCALAUTO_JBCRHTCO_DMCOPERATIVAIMPOF                            11/30/2006  23:16:00 11/30/2006  23:16:01 SU 1981376/1 

As you see the -w is not documented ....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to check only Autosys running jobs with autorep like command

Hi, Is there any specific command to use to check only say Running jobs via autorep or similar command for Autosys? (0 Replies)
Discussion started by: sidnow
0 Replies

2. Shell Programming and Scripting

Autorep not found problem

Hi All, I am using a putty session to login a server in which autosys is installed. we get the GUI by entering . /opt/CA/UnicenterAutoSysJM/autouser/autosys.ksh.server and then jobscape. when i tried autorep -j jobname it gives me autorep not found. Please help me with this. (1 Reply)
Discussion started by: mahesh300182
1 Replies

3. Shell Programming and Scripting

Problem with running the "autorep" command via crontab

Hi, The user "MadeInGermany" tried to help on the below post by saying "This has been asked before; see the links below. Get your current LD_LIBRARY_PATH and redefine that in your ksh script! " Thanks for the help. but this did not help. And my post got locked. I can't reply on my previous... (5 Replies)
Discussion started by: girish1428
5 Replies

4. Shell Programming and Scripting

Autorep command does not work from crontab !

Hi, I have written a ksh script and I'ma using the following command in it: autorep -j %abcd% | grep RU | grep BOX1 The script works fine when executed manualy on the command prompt. But does not work when scheduled in crontab. I could see the following in the crontab log: ... (1 Reply)
Discussion started by: girish1428
1 Replies

5. Shell Programming and Scripting

Using awk with autosys autorep

Hi, How to get correct field/column from autosys autorep command. I'm using GNU/Linux I'm trying to get the difference of last end and last start and the status (ST). In awk, i get the following excluding the heading part $1 - jobname $2 - Last Start date $3 - Last Start time $4 - Last... (1 Reply)
Discussion started by: bobbygsk
1 Replies

6. Shell Programming and Scripting

autorep command in the script

I have created UNIX script for getting information for the autosys jobs using autorep command. Job_name=temp_job1 echo $Job_name autorep -j $job_name -l0 After running the script I am getting the below error Error while loading shared libraries: libautoeac_api.so: cannot share object... (1 Reply)
Discussion started by: onesuri
1 Replies

7. UNIX for Advanced & Expert Users

autosys command(autorep) from command prompt

Hi, I am using AUTOSYS GUI based tool. But I want to get the job status from the UNIX command prompt. 1. I want to execute only autorep command in the UNIX command prompt. If need to execute this command what are the settings need to do that. 2. Is it possible for executing this... (5 Replies)
Discussion started by: onesuri
5 Replies

8. Red Hat

From where Machine name is taken in autorep report

Hi, When i tried to run a job on autosys which has to run a command on sys1 but its giving some other Machine name (sys56) , attempts ten times and fails. I would like to know from where this Machine column of autorep command gets input so that i can change to correct Host Machine (sys1) and... (4 Replies)
Discussion started by: Ishakarthi
4 Replies

9. Shell Programming and Scripting

autorep command in autosys

hi, i have autosys installed on unix. i use "autorep -j t8i%" command to see the scheduled jobs. now i have changed some of the jobs and saved them too. i gave the command jil< filename.jil to again insert the jobs. but my problem is what is the command to run all the jobs again so that i... (8 Replies)
Discussion started by: tejasingaraju17
8 Replies

10. Shell Programming and Scripting

autorep command to get autosys command

Hi, how can i use unix shell command to get the autosys commands for a set of given jobs? autorep -J EMP% -w returns all autosys jobnames starting with EMP and runtimes However, i also want to see the autosys 'command' corresponding to the above jobs. I don't want to sql query the... (1 Reply)
Discussion started by: ysrinu
1 Replies
Login or Register to Ask a Question