11-15-2022 08:27 AM
Hi Team,
I need a script which can list what all are the failures in the environment in last 24 hrs
And which i run will automatically trigger those failed backups
NBU 9.1
Linux
11-15-2022 08:27 AM
I need a script which will perform both above task for me.
11-16-2022 04:09 AM
Go take a look at the output of bpdbjobs ( /usr/openv/netbackup/bin/admincmd/bpdbjobs ) for a jobs view, with status codes etc.
Or if you want specific error codes /usr/openv/netbackup/bin/admincmd/bperror -hoursago 24 -problems
That will be very noisy.
Or perhaps more useful and less noisy, and probably more like what you want.
/usr/openv/netbackup/bin/admincmd/bperror -hoursago 24 -backstat -by_statcode -U
Start with that, and then you can refine things.
11-17-2022 12:30 AM
Thanks a lot.
My concern here is i also need a coomand which can fire the failures fetched from the bperror command
it should check whether backup has run or not, it shoould trigger only that failed jobs
I need all that in one single script which i can schedule in cron or can run manually
11-22-2022 01:30 AM
please need help on this
11-22-2022 01:53 AM
I didn't really want to write scripts for people, as that only triggers more questions on some basic scripting functionality.
I provided the info in my post. You can use some coding logic of your own (to be learnt possibly), then perhaps do some /usr/openv/netbackup/bin/bpbackup -i -p <policy> -s <schedule> if when mention about "firing jobs" you mean starting the backup job manually.
I think you want to spend some time doing some shell scripting tutorials, assuming you've got a linux environment. If not, probably want to look at powershell
best of luck
11-22-2022 02:10 AM
Thanks sshagent
If you can provide one time Linux script,that would be really helpful.
11-28-2022 09:00 AM
I'm sorry but rerunning an already failed backup job can only create more problems than it can fix most times. There are reasons why backups fail and NetBackup, by default, tries a backup 3 times before truly failing the job. This should be an indicator to you that some research into why the backup failed is needed before the next backup attempt.