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 :slight_smile: ? (or how to speed up the thing)

Regards

drmaniac.

I think your best bet would be to directly query the Oracle or Sybase Database behind the Autosys application.

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

Try (Autosys 4.5/maybe 4.0) :

autorep -J JOBNAME -w -d

Regards

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??

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

Let me show you an example:

$ 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 ....

The "-w" option widens the result.
Just use "autorep -J jobname -w", "autorep -J job% -w", "autorep -J ALL -w"