Amanda-Users

Re: Reading label

2008-07-02 16:30:09
Subject: Re: Reading label
From: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
To: "Sebastian Henrich" <shss AT gmx DOT de>
Date: Wed, 2 Jul 2008 16:25:26 -0400
On Wed, Jul 2, 2008 at 3:18 PM, Sebastian Henrich <shss AT gmx DOT de> wrote:
> I'm searching for the command to read the label of the currently inserted
> tape. Can somebody give me a hint?

What Amanda version?

The closest you can get to
 $ amreadlabel CONF
 CONF-012

is

 $ amtape S3 current
 slot  23: time 20080702001502 label S3023

If you're using 2.6.0 and above, though, you could probably write a
perl script named amreadlabel, based on amdevcheck.  If you're into
this idea, I'm at your disposal with all the assistance you need.  As
far as getting something like that in the codebase, I'd prefer
perlifying amtape and adding a handy new subcommand like
"current-label".  If you're into *that* idea, I'm at your disposal
with both assistance and an infinite supply of your beverage of
choice!

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com

<Prev in Thread] Current Thread [Next in Thread>
  • Reading label, Sebastian Henrich
    • Re: Reading label, Dustin J. Mitchell <=