Hello,

Am 22.04.2005 schrieb Arno Lehmann:
> Hi.
> 
> preissler thomas wrote:
> 
> >Hello,
> >
> >I wonna use the output of
> >
> >  echo "readlabel" | btape /dev/st0
> >
> >for analyze purposes. But when I do a ">/tmp/btape-output 2>&1" that
> >file is empty. Whats going on? Or is there another way to find out,
> >which pool is in drive?
> 
> Well, first of all - when the device is mounted by the sd btape can't 
> access it.
> 
> Secon, I'd use bconsole with status storage, some sed / awk scrip, and 
> then ffed the tape name into some database query to get the pool name.
> 
> No examples, sorry, but if you've got some experience with scripting in 
> the shell and with SQL that should not be too big a problem.

That does not work, 'cos the tape is not mounted.

HOST:/etc/bacula# bacula-console 
Connecting to Director HOST:9101
1000 OK: HOST-dir Version: 1.32f-4 (24 Jan 2004)
Enter a period to cancel a command.
*status storage
Using default Catalog name=Catalog DB=bacula
Automatically selected Storage: Tape
Connecting to Storage daemon Tape at HOST:9103

HOST-sd Version: 1.32f-4 (24 Jan 2004) i386-pc-linux-gnu debian testing/unstable
Daemon started 22-Apr-05 12:48, 0 Jobs run.
No Terminated Jobs.
Device /dev/st0 is not open.
No jobs running.
====
*

Please dont reply personally to me. I think thats a mailinglist.


Greets,
Thomas


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to