(a) oops, I didn’t mean to write plural. Just singular.
amadmin <config> tape
(b) the flag doesn’t work for me. I’m at version 3.3.7.
RedHat; I compiled from a tar ball.
The flag is completely ignored.
I wonder what makes the difference??
Deb Baddorf
Fermilab
On Feb 18, 2015, at 8:41 AM, Cuttler, Brian (HEALTH)
<[email protected]> wrote:
> Deb,
>
> I hadn't been aware of that flag, good catch.
>
> The switch does function for me.
>
> You used "tapes", rather than "tape"(?)
>
> # amadmin curie tape --days 1
> The next Amanda run should go onto tape Curie510 or a new tape
> tape Curie511 or a new tape
>
> # amadmin curie tape --days 2
> The next Amanda run should go onto tape Curie510 or a new tape
> tape Curie511 or a new tape
> The next Amanda run should go onto tape Curie512 or a new tape
> tape Curie513 or a new tape
>
> so if your version of amanda supports this, searching the list of tapes (and
> finding them) in the library for these tapes should give Stefan what he was
> looking for.
>
> Brian
> [Still at Wadsworth, only the email has changed]
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Debra S Baddorf
> Sent: Tuesday, February 17, 2015 4:46 PM
> To: [email protected]; AMANDA users
> Cc: Debra S Baddorf
> Subject: Re: notify when library is running out of tapes
>
> To take this discussion back to the whole list:
> Stefan has a small untested script to make use of a feature which I
> think is not active currently. He may have seen references in the code.
> amadmin <config> tapes -days N
> which apparently would tell you what tapes will be required for N days to
> come.
>
> amadmin <config> tapes
> tells about RUNTAPES number of tapes, where RUNTAPES is
> the number configured to be used each day. The dash-dash-days flag
> would multiply N days times RUNTAPES, I imagine.
>
> You would still have to grep through your tape library to see if the tapes
> were present.
>
>
> If that -days flag worked, it could be very useful. The flags aren't
> in my man pages, and they don't work for me (though nothing complains
> about the flag).
>
>
>
> Currently, one could increase the RUNTAPES parameter arbitrarily, then
> amadmin <config> tapes
> mtx -f /dev/changer status
> and some grepping to see if all those tapes were present. But Stefan
> says he needs the
> RUNTAPES param and can't change it.
>
>
> Or, Stefan suggests that maybe AMCHECK might be expected to do the work
> for us, rather than us having to write a script to check the library.
>
> Comments, thoughts, from anybody else? Discussion .....
>
> Deb Baddorf
> Fermilab
>
>
> (please forgive capitalized words - that's so spell checker will stop
> changing them into OTHER words)
>
>
>
> On Feb 17, 2015, at 3:08 PM, Stefan G. Weichinger <[email protected]> wrote:
>
>> On 17.02.2015 20:51, Debra S Baddorf wrote:
>>
>>>> When I run it on a server with amadmin-3.3.6 .. the help tells me so, yes.
>>>
>>> Hmmm - I'm at 3.3.7 and I don't see that.
>>> Only for OTHER amadmin commands, such as bump.
>>
>> maybe that got changed, yes!
>> Sophisticated users do a code-view .. others ask JLM on the list ;-)
>>
>>
>>>> I don't like fiddling with $runtapes, no, I need that parameter to
>>>> be exactly defined at the customer in case.
>>>>
>>>> And it wouldn't be an elegant solution IMO (I wouldn't understand it
>>>> in a year and screw it up by "correcting" the value of $runtapes).
>>>
>>> Well, if I changed it, I would put a large paragraph of comments
>>> about WHY I had changed the value!
>>
>> I prefer doing things in a way that does not bend things.
>> As seen above, upstream code changes ...
>>
>>
>>>>> Maybe this makes it worth putting the amanda-users back into the email
>>>>> address
>>>>> and sharing the concept with the list? And then re-sharing your script
>>>>> (since I've
>>>>> obliterated it from this email)
>>>>
>>>> Feel free to share it there if you want ... I am running out of time
>>>> here right now and got to leave now. Maybe we wait with sharing it
>>>> .. ->
>>>
>>> I'll put together both your script, and my questions about -days
>>> and about the RUNTAPES param and post them to the list.
>>> Just to get some conversation flowing.
>>> Catch ya later.
>>
>> Thanks, looking fwd.
>>
>> To me that looks like a nice feature request for amcheck!
>>
>> Stefan
>>
>
>