Forum Discussion

avinash7's avatar
Level 3
8 years ago

[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 ?