Elapsed time script?
anyone know what command to use to get the elapsed time in minutes seconds?
this would be the same output as the Java screen in "client backups reports".
This goves me everything I need but the "Elapsed time"
bpimagelist -U -d 10/10/2008 18:00:00 -e 10/13/2008 06:00:00
This gives me the Elapesed tiem but in seconds adn in a cruddy output.
bpimagelist -L -d 10/10/2008 18:00:00 -e 10/13/2008 06:00:00
James,
I quickly scripted something for you.
Run this and it will display the data in the following order
Backed up Time/Date | Elapsed Seconds | Expiration Date/Time | KiloBytes | Files | Policy | Schedule Label |Hope this helps.
#!/bin/sh
BPIMG_CMD=/usr/openv/netbackup/bin/admincmd; export BPIMG_CMD
BPDBM_CMD=/usr/openv/netbackup/bin; export BPDBM_PATH
echo " Backed up Time/Date | Elapsed Seconds | Expiration Date/Time | KiloBytes | Files | Policy | Schedule Label |"
$BPIMG_CMD/bpimagelist -d 10/10/2008 18:00:00 -e 10/13/2008 06:00:00 | awk '($1 == "IMAGE"){print $14,$15,$16,$19,$20,$7,$11}' | while read bkptime elapsed bkpexpire kbytes files policy schedule
do
echo "`$BPDBM_CMD/bpdbm -ctime $bkptime | cut -d= -f2-20` | $elapsed | `$BPDBM_CMD/bpdbm -ctime $bkpexpire | cut -d= -f2-20` | $kbytes | $files | $policy | $schedule |"
done

