Forum Discussion

shashi0621's avatar
shashi0621
Level 5
9 years ago

netbackup batch file creation

Hi guys,

 

In our daily health check,we need to check the partials in the environment with shadow component failure/system state  and SQL backup partial failure and we need to run those.

 

We use report section of the GUI.Report-problem then filter by:

For system state/Shadow copy components:

ERR - failure reading file: System State:
WRN - can't open object: System State: 
WRN - can't open object: Shadow Copy Components:

For SQL:


bphdb exit status = 1: 
 

 

Can please anybody provide me the windows batch script for this so that we can run that on daily basis and check.

NBU 7.6

Win 2008 server.

 

  • Well that is really a Windows question, not NetBackup.  Something like this, I guess:

    <NBUPATH>\bperror  -problems | findstr /c: "System State"

    <NBUPATH>\bperror  -problems | findstr /c: "Shadow Copy"

    <NBUPATH>\bperror  -problems | findstr /c: "bphdb exit status =1"

     

4 Replies

  • the command to use in your script would be

    <NBUPATH>\bperror  -problems

     

  • Thanks.

     

    Can you please provide the exact script.I am very bad with the script path.

     

    Sorry for bothering,.

  • Well that is really a Windows question, not NetBackup.  Something like this, I guess:

    <NBUPATH>\bperror  -problems | findstr /c: "System State"

    <NBUPATH>\bperror  -problems | findstr /c: "Shadow Copy"

    <NBUPATH>\bperror  -problems | findstr /c: "bphdb exit status =1"