Re: [Bacula-users] Getting device / autochanger status for external script?

2008-02-07 Thread Jason A. Kates
Why not use mtx to figure out the tape status? mtx -f /dev/sg1 status Storage Changer /dev/sg1:2 Drives, 48 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 43 Loaded):VolumeTag = JX2072L3 Data Transfer Element 1:Full (Storage Element 6 Loaded):Volum

Re: [Bacula-users] Getting device / autochanger status for external script?

2008-02-07 Thread John Stoffel
> "Mark" == Mark Nienberg <[EMAIL PROTECTED]> writes: Mark> John Stoffel wrote: Mark> John Stoffel wrote: even if you *don't care* which drive gets used, bacula should just pick it's own damm drive for the checking, if needed. And since update slots hacks the Media table, what'

Re: [Bacula-users] Getting device / autochanger status for external script?

2008-02-06 Thread Mark Nienberg
John Stoffel wrote: > Mark> John Stoffel wrote: >>> even if you *don't care* which drive gets used, bacula should just >>> pick it's own damm drive for the checking, if needed. And since >>> update slots hacks the Media table, what's the process to get the >>> status without an update? > > Mark>

Re: [Bacula-users] Getting device / autochanger status for external script?

2008-02-06 Thread John Stoffel
Mark> John Stoffel wrote: >> >> even if you *don't care* which drive gets used, bacula should just >> pick it's own damm drive for the checking, if needed. And since >> update slots hacks the Media table, what's the process to get the >> status without an update? Mark> Does this give you what y

Re: [Bacula-users] Getting device / autochanger status for external script?

2008-02-05 Thread Mark Nienberg
John Stoffel wrote: > > even if you *don't care* which drive gets used, bacula should just > pick it's own damm drive for the checking, if needed. And since > update slots hacks the Media table, what's the process to get the > status without an update? Does this give you what you need? #!/bin/

[Bacula-users] Getting device / autochanger status for external script?

2008-02-05 Thread John Stoffel
Hi all, I'm writing an external perl script to query the bacula DB so I can grab out the list of tapes in the autochanger and do some formating on the resulting data to make it easier to read. But what I really want is to be able to: 1. know t he number of slots/drives in the autochanger(s). 2.