Bacula-users

Re: [Bacula-users] webpage - what tapes are in my tape library?

2011-02-11 10:46:42
Subject: Re: [Bacula-users] webpage - what tapes are in my tape library?
From: "Dan Langille" <dan AT langille DOT org>
To: "Randy Katz" <rkatz AT simplicityhosting DOT com>
Date: Fri, 11 Feb 2011 10:44:00 -0500
On Wed, February 9, 2011 9:42 pm, Randy Katz wrote:
> On 2/9/2011 6:26 PM, Dan Langille wrote:
>> Over the past week, I've been playing with a webpage that displays the
>> following information:
>>
>> * what is ready for copy from disk to tape
>> * the status of the tapes in the tape library
>> * how much data is on tape
>> * the status of the tapes not in the tape library
>>
>> The current status is at https://services.unixathome.org/tapes.php
>>
>> This is what it looked like earlier tonight, before I replaced some
>> tapes:
>>
>>     http://www.freebsddiary.org/tapes.html
>>
>> After inserting the new tapes, one of which was unknown to Bacula.  By
>> this time, I had run 'update slots'.
>>
>>     http://www.freebsddiary.org/tapes.unknown.html
>>
>> Then, after I ran 'label barcodes', the output looked like this:
>>
>>     http://www.freebsddiary.org/tapes.after.label.html
>>
>> The source code for this is at:
>>
>>     http://www.freebsddiary.org/samples/tapes.txt
>>
>> The SQL is PostgreSQL specific.  I'm sure it can be adapted to
>> MySQL/SQLite.  The code is also specific to the disk and tape pools that
>> I am interested in.
>>
> Dan, looks pretty good. I do not have tape yet, just disk and MySQL, if
> you forward the php code I'll
> adapt it to what I have and give you back the adapted version.

Have you found the source code yet?  ;)  I didn't want to reply right away
in case you found the link... in the paragraph right above your reply.  ;)

I've updated the code since then.  It now adds a count of the volumes. and
a 'retain until' field for each volume.

-- 
Dan Langille -- http://langille.org/


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>