[Help] How to extract summary of only backup jobs from bpdbjobs output

Hello All,

I am trying to create a script which will give me the summary and error/warnings of all backups that ran in the last 24 hours.

 

I am using the below commands in the script to provide me the output.

/usr/openv/netbackup/bin/admincmd/bpdbjobs -summary -L -keep_hours ${HOURS} > ${TEMP}

HOURS is the timeperiod for which the data needs to collected and TEMP is the file where the data is saved for email.  However, this command gives me output for backup, snapshot & duplication jobs in my environment. Is it possible to make some changes to the command to give us the output for only the backup jobs and not the duplication jobs ?

With the current script, I am getting the output as below: The failures are duplication failures, none of them are failed backups.

Summary of jobs on master

Queued:                               19

Waiting-to-Retry:                        0

Active:                           8

Successful:                     751

Partially Successful:             0

Failed:                        5800

Incomplete:                       0

Suspended:                        0

Total:                         6578

 

Any suggestions please ?

Regards,
Avinash
1 Reply
Highlighted

Re: [Help] How to extract summary of only backup jobs from bpdbjobs output

Looking at the command options there does not appear to be any options on -summary that do this.

https://www.veritas.com/support/en_US/article.000109736

Perhaps if you run -report instead and process the detailed output?