Networker

Re: [Networker] How to query for whether a volume is mounted?

2008-05-06 13:53:27
Subject: Re: [Networker] How to query for whether a volume is mounted?
From: Michael Nored <mrnored AT NETZERO DOT NET>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 6 May 2008 13:50:59 -0400
Michael,
That interesting, I get the following response:

nsradmin> print type:NSR device
                        name: "G:\\AFTD1_Clone\\_AF_readonly";
                     message: unmounted AFTDClone.001.RO;

                        name: "G:\\AFTD1_Clone";
                     message: unmounted AFTDClone.001;

                        name: "G:\\AFTD1\\_AF_readonly";
                     message: \mounted adv_file disk AFTD.001.RO (write
protected);

                        name: "G:\\AFTD1";
                     message: mounted adv_file disk AFTD.001;

Michael Nored
Consultant
Nored Consulting, LLC
 
M: (407) 399-8162
T:  (352) 350-7142
E: mnored AT Netzero DOT net


-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of MIchael Leone
Sent: Tuesday, May 06, 2008 12:37 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] How to query for whether a volume is mounted?

"Michael Nored" <mrnored AT netzero DOT net> wrote on 05/06/2008 12:18:43 PM:

> Michael,
> Use nsradmin to check the device:
> 
> nsradmin
> Show name;message
> print type:NSR device
> 
> Michael Nored
> Consultant
> Nored Consulting, LLC
> 
> M: (407) 399-8162
> T:  (352) 350-7142
> E: mnored AT Netzero DOT net

Thanks. But I'd need to do this in a script, and parse the output, so the 
script can make decisions. And this way doesn't always seem to include the 
word "unmounted", apparently ..



Unmounterd volumes (i.e., node that isn't hosting the virtual server, and 
is not mounted):


                        name: \
"rd=admndbs002.wrk.ads.pha.phila.gov:X:\\DBO\\_AF_readonly";
                     message: read only;

---------------------------------------------------------------------

same situation (node that isn't hosting, and is not mounted; note 
different response)



"rd=admnsan001.wrk.ads.pha.phila.gov:X:\\DBO\\_AF_readonly";
                     message: " ";


----------------------------------------------------------------------

Anyone know of a more consistent method of querying? There's no way to 
return "mounted status"? I see the same message of "read only" for both 
mounted and unmounted volumes.



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

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