04-06-2012 02:28 AM
Hi All,
I want to see the backups which failed in past 24 hours through a command.
When i use bperror -backstat -U -hoursago 24 | grep -v 0 , i get all the failed backups which were failed in past 24 horus.But the output contains even the backups which were successfull later on.
So, is there any way where i can see only the failed backups and which are not successfull later on. If any backups are successfull later on those shouldn't be displayed.
Thanks and Regards,
Sahil
04-06-2012 02:30 AM
Below command will display the list of Successfull Jobs and Failed Jobs with the Status Code:
/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -s info -hoursago <Duration> -M <Master Server>
Eg:
/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -s info -hoursago 2 -M zeus.
Above Command will display the backup jobs completed and failed for zeus master server in last 2 hours
04-06-2012 02:32 AM
kindly find docs all command.
http://www.symantec.com/business/support/index?page=content&id=DOC3684
04-06-2012 03:06 AM
Thanks Ashish,
Yes the command will display the Backup job failed in past two hours.
Consider an ex:
PolicyA failed by error 96 in the past 2 hours.
Tapes were inserted and again PolicyA is refired and is successfull.
But now when i run the bperror command then both the statuses would be displayed in the output. one which was failed by 96 and other which was successful by 0
In the above case, i am not expecting to see any output since my backup is successfull.
I only want to see the ouput if the backup job is failed and is not successfull later on.
Regards,
Sahil Joshi
04-06-2012 03:25 AM
Sahil,
This works for me:
bperror -backstat -U -hoursago 24| grep -v "^ 0 "
04-06-2012 03:47 AM
have you tried filters in GUI activity monitor ?
04-06-2012 04:09 AM
Thanks Revaroo,
Will work on scripting since there is no other way..!
04-06-2012 04:23 AM
Sahil, you're welcome.
You may also want to look into OpsCenter and how that can help you in reporting.
Could you mark one of the posts above, that helped you most, as solution as well.