10-03-2008 06:10 AM
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
10-03-2008 06:49 AM
/usr/openv/netbackup/bin/admincmd/bpimagelist
Ok i know ist this one but what switches?
10-03-2008 08:21 AM
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