Video Screencast Help

Client Backups Report through command line

Created: 08 Jun 2011 • Updated: 08 Jun 2011 | 3 comments
This issue has been solved. See solution.

Hi Team,

 

I want Client Backups Report from command line, I know # cd /usr/openv/netbackup/bin/admincmd
# ./bpimagelist -U [-A|-client name] [-d <start_date> <start_time> -e <end_date> <end_time>]

It gives as belwo

Backed Up         Expires       Files       KB  C  Sched Type   Policy
----------------  ---------- -------- --------  -  ------------ ------------
 

But I need Elapsed time too.. How to get this from command line.

 

Ref link

http://www.symantec.com/business/support/index?page=content&id=TECH20462

Thanks,

Comments 3 CommentsJump to latest comment

Riaan.Badenhorst's picture

Backup Status Report
The Backup Status report shows status and error information on jobs completed within the specified time period. If an error has occurred, a short explanation of the error is included.  
# cd /usr/openv/netbackup/bin/admincmd
# ./bperror -U -backstat -s info [-d <start_date> <start_time> -e <end_date> <end_time>]

Andy Welburn's picture

DOCUMENTATION: What are the different fields in "bpimagelist -l" output?
http://www.symantec.com/business/support/index?pag...

Elapsed time is one of the output fields....

Also, bpimagelist -L will give these fields in a more readable form.

You could be looking at a lot of output so may want to "filter" your results somehow!

e.g.

bpimagelist -l -d 06/07/2011 00:00:00 -e 06/08/2011 00:00:00 -client client | awk '/^IMAGE/ {print $2, $7, $15}'

will produce output only of client name, policy & elapsed time (seconds) for backups between those times.

SOLUTION
Baski's picture

Hi Andy,

 

Very good command information mate. Thanks for your help..