Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NB 6.0 remove code 150 from bpdbjobs reporting 1

Status
Not open for further replies.

CalgaryCR9

Technical User
Aug 12, 2005
80
CA
We are running NB 6.0 MP4. Our nightly reporting is based on bpdpjobs output. I'd like to cron a job to remove the error code 150 output from the db prior to kicking off our nightly report.

What is the command to remove error code 150 from the db?
 
You can't remove specific entries from the db.
however, you can remove them from the activity monitor.

Bob Stump
VERITAS - "Ain't it the truth?"
 
I thought the previous versions of NB allowed this. I'll tweak my script to omit entries with a status code 150.

Thanks.
 
A colleague recommended the following:

bpdbjobs -report -most_columns | \
nawk -F"," '{if ($4==150) print"bpdbjobs -delete "$1}'\
> /tmp/kill_jobs; sh /tmp/kill_jobs


WORKS LIKE A CHARM!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top