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. query the drives. 3. query the slots. 4. then query the media DB to figure out the status of various pieces of media. I've got the intial script working, which only queries (via mysql) the Media DB to find out some info and pretty print the data. But of course the Storage and Device tables aren't actually populated. And I don't think I want to parse the Bacula configuration files to run my queries. Should I be running bconsole commands and parsing the output instead? Something like this: bconsole -c /etc/bacula/bacula-director.conf <<EOF status storage EOF And then take all the output and parse it with my perl script? Ugly... And does anyone else find it annoying that you can't do: status slots but instead you have to run: update slots drive=0 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? Thanks, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users