Networker

Re: [Networker] detecting read/write status of tape

2006-10-30 14:14:24
Subject: Re: [Networker] detecting read/write status of tape
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 30 Oct 2006 11:06:20 -0800
> I can't seem to find a way to determine the read only or read write  
> status of an LTO2 tape.  Using Solaris.  mt won't tell me.
> 
> I thought nsrmm would report the status but I can't see how if it can.

No, it can't.  That information isn't stored in the database.  Such
information isn't required, and it could change without the server
knowing, so storing it isn't useful.  You have to check on each mount.

> If anyone knows how to find out the status of the read/write tab in a  
> form suitable for incorporation into a script I'd be most grateful.

Ugh, I'm well away from my test system, so I can't flip a tab to
investigate.

I believe that (when mounted), the state appears in the GUI and
nsrwatch.  If true, then I'd wager that either the 'NSR device' or the
'NSR' resources would have the information.  I just don't see the
correct field by a quick scan at the manual.

-- 
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. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER