On Mon, 29 Jan 2007, James Harper wrote: > Failing that, is there a way that the director can tell me what the > label is on the current disk volume? I'm sure I have seen it tell me on > a mount before, or maybe I'm thinking of tapes. It doesn't tell me > anything useful when I try it now though.
(Assuming you're in a Linux environment...) I've got a little shell script I call 'status.sh': [EMAIL PROTECTED] ~]# cat ./romer/status.sh #! /bin/bash bconsole << END_OF_DATA status storage=Ultrium quit END_OF_DATA Since we know what to expect from 'status storage' output, I can feed that through 'grep' to get what you're looking for: [EMAIL PROTECTED] ~]# ./romer/status.sh | grep mounted Device "DellUltrium" (/dev/nst0) is mounted with Volume="xRaid1_pt3" Pool="Default" You could even pipe that output to email: [EMAIL PROTECTED] ~]# ./romer/status.sh | grep mounted | mail -s 'Current Mounted Tape' [EMAIL PROTECTED] >Date: Mon, 29 Jan 2007 09:29:38 -0500 From: root <[EMAIL PROTECTED]> Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Current Mounted Tape Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 29 Jan 2007 14:29:41.0025 (UTC) Device "DellUltrium" (/dev/nst0) is mounted with Volume="xRaid1_pt3" Pool="Default" -- D ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users