Video Screencast Help
Scheduled Maintenance: Symantec Connect is scheduled to be down Saturday, April 19 from 10am to 2pm Pacific Standard Time (GMT: 5pm to 9pm) for server migration and upgrade.
Please accept our apologies in advance for any inconvenience this might cause.

Command line backup reports

Created: 13 Sep 2011 • Updated: 30 Oct 2012 | 8 comments
This issue has been solved. See solution.

Hello.

 

Do you know if there is a command line binary that gives the same information that is given in the "Reports" of the Administration Console?

I want the backup time (start and end time), backup name, policy, bytes backup, etc.T

 

Thanks for your attention!

 

Regards,

Vilhena

Comments 8 CommentsJump to latest comment

wr's picture

bperror -backstat  produces the Status of Backups report

Will Restore -- where there is a Will there is a way

vilhena's picture

Thanks wrobbins, but bperror -backstat doesn't give me the start and end time, neither backup size :/

 

I'm using bperror -U -backstat -s info, but still it lacks info!

 

Thanks,

Vilhena

Stuart Green's picture

DOCUMENTATION: The command line equivalents for running the NetBackup reports available in the NetBackup user interface

http://www.symantec.com/docs/TECH20462

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.

vilhena's picture

All right Stuart! Thanks!

 

Still it lacks the elapsed time, do you know how to add that to the report?

 

Thanks!

Ricardo Vilhena

Andy Welburn's picture

the report?"

If you are still looking at the option of using bpimagelist per the T/N Stuart quoted & you want the elapsed time then, as an alternative to bpdbjobs, you could look at bpimagelist -l, but you're still going to have to do a lot of work with the output:

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

 

If you do want to look at the output from bpdbjobs in a UNIX environment, then maybe you could utilise COLDEFS to 'restrict' the initial output?

BPDBJOBS_COLDEFS bp.conf entries for UNIX servers
http://www.symantec.com/business/support/index?pag...

 

SOLUTION
Andy Welburn's picture

You may need to do a little work to get exactly the info you want (awk/findstr)

DOCUMENTATION: In NetBackup 6.x and 7.x, what does the output of "bpdbjobs -most_columns" mean?
http://www.symantec.com/business/support/index?pag...

vilhena's picture

Thanks a lot, that will surelly give a boost on my awk skills, eheh!

 

Regards,

Vilhena

Andy Welburn's picture

Yeah, there's a lot of info available but it never seems to all come in nice little parcels & frequently requires a little scripting to combine output from several commands & more than enough awks to keep you happy!