Mathew Harvest wrote:
Hey George,
You can find out via an nsradmin query, the volume name will be blank if the
device is unmounted.
----- the device is unmounted
nsradmin> show volume name
nsradmin> print type:nsr device;media type:adv_file;name:/global/datac/legato
volume name: ;
----- the device is mounted
nsradmin> print type:nsr device;media type:adv_file;name:/global/datac/legato
volume name: b2d.dc105ucsmsv01.c;
Eureka! That's it! Thanks.
George
Mat.
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of George Sinclair
Sent: Thursday, 29 July 2010 4:19 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] File type device availability?
How in a script can you determine if a file type device volume is
mounted and available?
I notice that 'location' doesn't report these volumes from mminfo.
Likewise, 'near' doesn't apply. How would the script know that it's
mounted before it tries to access it?
George
--
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any official or
unofficial position of the United States Department of Commerce -
- Any opinions expressed in this message are NOT those of the US Govt. -
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
|