On 01/02/11, Jose Antonio Rodriguez Martin (jarodrig...@cgi.es) wrote: > HP LTO3 tapes are labeled with a unique reference. > Is there any way to get this reference from a bash script?
If you are referring to the tape volumename, a convenient way of extracting volumenames can be to run a database query. Eg. SELECT m.mediaid, m.volumename, m.slot, m.poolid, p.name AS pool FROM media m, pool p WHERE m.poolid = p.poolid ORDER BY m.poolid, m.mediaid; Another way is to run a set of bconsole commands as a heredoc: bconsole << EOF list media poolid=6 EOF (I'm not sure of the syntax of the second example -- please check). Rory -- Rory Campbell-Lange r...@campbell-lange.net Campbell-Lange Workshop www.campbell-lange.net 0207 6311 555 3 Tottenham Street London W1T 2AF Registered in England No. 04551928 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users