[Networker] Determine if a media drive is in use
2007-12-07 17:15:55
nsrmm -C -f '\\.\Tape0'
returns:
(nothing) mounted on LTO Ultrium-2 tape \\.\Tape0
So just do a:
nsrmm -C -f '\\.\Tape0' | grep "(nothing)" | wc -l
To return a 0 or 1 if a tape is mounted or not in that drive.
+----------------------------------------------------------------------
|This was sent by mgolden AT kanbay DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
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
|
|
|