cancel
Showing results for 
Search instead for 
Did you mean: 

Command to list Drive name and current running backup

Rama_Singh
Level 3

Is any command in netbackup which give me drive name (If multiple Tap library is configured) with current runing backup and all queued client for backup ?

22 REPLIES 22

revarooo
Level 6
Employee

Not possible without some serious coding I'm afraid.

Mark_Solutions
Level 6
Partner Accredited Certified

The problem is that to get the detail you want you need to dump the bpdbjobs file and then either grep it or use vbs to analyse it and then pipe out the results.

That could take a considerable amount of time which would actually make your results when they finally get to the dashboard rather behind time. How quickly are you looking for this to update?

Nagalla suggested the nbrbutil command and i would like to expand on that to make it much easier...

nbrbutil -listActiveDriveJobs HP.ULTRIUM4-SCSI.00

(is that really your drive name? I expected HP.ULTRIUM4-SCSI.000)

will pipe out a quick nice report on what your tape drive is doing including the job id, whether backup or restore and the tape pool in use.

It should be quick to grab your other details (client etc) from the job id

And just repeat the command against each drive you have.

There should be very little processing time involved with this to keep your dashboard up to date.

Hope this helps

Will_Restore
Level 6

nbrbutil -listActiveDriveJobs <drivename>

That will do the trick!  Shows jobid, jobtype, drivename, mediaid, poolname

 

bpdbjobs | grep Queued

will list the queued jobs