cancel
Showing results for 
Search instead for 
Did you mean: 

I need to find a command that shows the "start and stop" time of a job

zippy
Level 6

I need to find a command that shows the "start and stop" time of a job or one that shows how long each job took to run.

 

Thanks

 

 

/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -s info
STATUS CLIENT        POLICY           SCHED      SERVER      TIME COMPLETED
  0    ush19         USH19_ARCHIVES   ush19_arch ush4        10/02/2008 09:19:26
  0    ush20         USH20_ARCHIVES   ush20_arch ush4        10/02/2008 09:22:08

2 REPLIES 2

zippy
Level 6

/usr/openv/netbackup/bin/admincmd/bpimagelist

 

Ok i know ist this one but what switches?

Former_Mary_Kay
Level 4

Here's what I use:

 

bpimagelist -l -hourseago $HOURS

 

imgtime=`echo $line | awk '{print $14}'`

elptim=`echo $line | awk '{print $15}'`

 

or

 

bpdbjobs -report -most_columns

 

startseconds=`echo $jobline | cut -d, -f9`
totseconds=`echo $jobline | cut -d, -f10`

 

You'll aslo need the following to convert the seconds into human readable dates:

 

bpdbm -ctime $SECONDS