cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an error report

vemurirajesh10
Level 3

Hi,

I'm using Symantec NetBackup 7.0.1 installed on Solaris 10 64 bit Platform.

I would like to generate a report file for backups failed with Error Code:1 for last 24 hours with fields JOBID, CLIENT, POLICY, ERROR CODE, DESCRIPTION (Eg: WRN or ERR or TRV). I would like to run the script every day morining @ 8am. Please suggest how to do it by using bperror command with specific fields.

1 ACCEPTED SOLUTION

Accepted Solutions

Nathan_Kippen
Level 6
Certified

Not pretty but whatever.... you can do whatever you want with it from here..

 

/usr/openv/netbackup/bin/admincmd/bperror -l -backstat -hoursago 24 | awk '{print $6, $12, $14, $19, system("/usr/openv/netbackup/bin/admincmd/bperror -S "$19)}' | sed -e '/^0$/d' -e '/^No/d'

 

View solution in original post

4 REPLIES 4

Nathan_Kippen
Level 6
Certified

Look at this thread:

 

http://news.support.veritas.com/connect/pt-br/forums/bperror-column-descriptions

 

..I would then use awk to grab the fields you wants...

vemurirajesh10
Level 3

Thanks Nathan,

Can you provide script for the format that I need the output.

Nathan_Kippen
Level 6
Certified

Not pretty but whatever.... you can do whatever you want with it from here..

 

/usr/openv/netbackup/bin/admincmd/bperror -l -backstat -hoursago 24 | awk '{print $6, $12, $14, $19, system("/usr/openv/netbackup/bin/admincmd/bperror -S "$19)}' | sed -e '/^0$/d' -e '/^No/d'

 

Dipendra_Singh
Level 4

Schedule it to run using cron job, make an entry for the script suggested by Nathan in crontab and you can let it run at your scheuled time.

Another Option is to use and edit the bpend_notify script to send a mail to your mailbox for errors/failures and can also trigger this failure event, to log case in your ticketing tool.

Rajesh, If you like the option suggested then you can mark it as solution and close this thread by voting it.