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
> "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'
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>
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
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/
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.