cancel
Showing results for 
Search instead for 
Did you mean: 

Unix scripting assistance ?

David_McMullin
Level 6

We backup to a VTL, then duplicate to an SL8500.
When the SLP jobs queue up, they allocate resources to the job before they determine if it will run - so they lock the source and destination tape drives, then check to see if the tapes are available. If an existing backup is writing to a tape on my VTL, the destination physical tape drive cannot be used until the source tape free's up.

What I am looking for is a sequence of commands that would scan the active jobs for jobs with "State Details" = "Media is in use", then I can run the bpdbjobs -cancel command to cancel the SLP job which will free up the tapes.

Thanks in advance.




1 ACCEPTED SOLUTION

Accepted Solutions

David_McMullin
Level 6

I added this to my bp.conf:
BPDBJOBS_COLDEFS = STATE 20 true

then
bpdbjobs -report -most_columns | grep " media is in use "

works to display job id.

Looks like I got it after all.

View solution in original post

2 REPLIES 2

David_McMullin
Level 6

I tried this with no luck:
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report -all_columns | grep "Media is in use"


David_McMullin
Level 6

I added this to my bp.conf:
BPDBJOBS_COLDEFS = STATE 20 true

then
bpdbjobs -report -most_columns | grep " media is in use "

works to display job id.

Looks like I got it after all.