Forum Discussion

Baski's avatar
Baski
Level 5
14 years ago
Solved

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.

5 Replies

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

    • shdwp's avatar
      shdwp
      Level 3

      If we want to get report for all of the clients, then will we use bpimagelist without mentioning any specific client, also is there a way to get only the Full Backups of all clients? 
      Can anyone plz tweak and tune the above command for the above scenario?
      According to my understanding the command for the above scenario will be something like below (to get data for the month of June-2025):

      /usr/openv/netbackup/bin/admincmd/bpimagelist -U -d 06/01/2025 -e 07/01/2025

      But the problem is that it also shows the data of Incremental backups, which we don't require?

  • Hi Andy,

     

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

    • shdwp's avatar
      shdwp
      Level 3

      If we want to get report for all of the clients, then will we use bpimagelist without mentioning any specific client, also is there a way to get only the Full Backups of all clients? 
      Can anyone plz tweak and tune the above command for the above scenario?
      According to my understanding the command for the above scenario will be something like below (to get data for the month of June-2025):

      /usr/openv/netbackup/bin/admincmd/bpimagelist -U -d 06/01/2025 -e 07/01/2025

      But the problem is that it also shows the data of Incremental backups, which we don't require?