Amanda-Users

Re: Making certain the correct changer slot is selected before running amdump

2006-04-15 05:49:22
Subject: Re: Making certain the correct changer slot is selected before running amdump
From: Joshua Baker-LePain <jlb17 AT duke DOT edu>
To: stan <stanb AT panix DOT com>
Date: Sat, 15 Apr 2006 05:46:52 -0400 (EDT)
On Sat, 15 Apr 2006 at 5:24am, stan wrote

On Sat, Apr 15, 2006 at 12:20:16AM -0400, Gene Heskett wrote:

You can go ahead and write such a beast, but if the tapes are already
labeled, amcheck can do that just fine.

Mmm, as far as I know amcheck can tell me if the correct tape is loaded,
but I'll stil need to write something that will run amcheck, check the
results of it (does it return a status or do I have to check the text
it outputs), then run amtape next slot, check again, and loop untill
it gets a good status (or has checked all slots).

With my changer (and chg-zd-mtx), amtape will scan through all available slots until it finds (or doesn't) the tape with the label it's expecting.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University