Networker

Re: [Networker] Identify writeable volume.

2004-06-21 17:51:44
Subject: Re: [Networker] Identify writeable volume.
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 21 Jun 2004 14:51:34 -0700
>
> Is there a way to write a query to identify a writeable volume.  I just
> need the volume name.
>
> I am using now
> KSH#mminfo -mV -q '!readonly'
>    volume                  written  (%)  expires     read mounts capacity
> flags
> M  MON                      172 GB 100%    manual    0 KB     4    100 GB

You also don't want 'full' volumes.

mminfo -a -q '!readonly,!full' -r 'volume'

> I was using
> mminfo -mV -q '!readonly' 2>/dev/null | grep -v volume | awk '{print $1}'
>
> But this fails if the volume is 'manual' recycle.

How does it fail?  Does it print when it shouldn't, or not print when it
should?

Whether a volume is set to be manually recyclable only shouldn't affect
whether it's appendable or not.

--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=