Forum Discussion

Baski's avatar
Baski
Level 5
14 years ago

Client Backups Report through command line

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,

  • DOCUMENTATION: What are the different fields in "bpimagelist -l" output?
    http://www.symantec.com/business/support/index?page=content&id=TECH5584

    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.

  • 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>]

  • DOCUMENTATION: What are the different fields in "bpimagelist -l" output?
    http://www.symantec.com/business/support/index?page=content&id=TECH5584

    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.

  • Hi Andy,

     

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