Networker

Re: [Networker] Determine if a media drive is in use

2007-12-05 18:03:17
Subject: Re: [Networker] Determine if a media drive is in use
From: Howie Jock <Jock.Howie AT NZPOST.CO DOT NZ>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 6 Dec 2007 11:49:50 +1300
For windows, this syntax should do the job :


nsradmin -s NWServer -i - >OutputFile.txt
  show status
  print type: NSR group;
  name: GroupX
q


regards 

Jock Howie 
Datacom NZ Post Backup Administrator 
03 548 8037 
0274 264 712 (m) 


-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Werth, Dave
Sent: Thursday, 6 December 2007 8:59 a.m.
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Determine if a media drive is in use

Here is the way I run nsradmin in a script on Solaris.  There must be a
way to do it in Windows as well.

 echo "
  show status
  print type: NSR group;
  name: Oracle-redologs" | nsradmin -s NWServer -i - > $OutputFile

The output from the command is recorded in $OutputFile and from there
you can do what you will with it.


David Werth
Garmin AT, Inc
Salem, Oregon
dave.werth<at>garmin.com

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Rebecca Alexander
Sent: Wednesday, December 05, 2007 11:48 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Determine if a media drive is in use

Hmmm.  I'll have to look at that.  What I'm doing is just using mminfo
to check tapes eligible to be recycled then passing that info to nsrjb
to get all information I need to label the tape.

It looks like to me that nsradmin is interactive - I need a way to find
that information through an email.

BTW - here is the snippet that does the query:


On Wed, 5 Dec 2007 10:16:43 -0600, Fazil Saiyed
<Fazil.Saiyed AT ANIXTER DOT COM>
wrote:

mminfo -a -r "volume,location,state" | grep STKL700e.*"E "$ | grep
STKL700 | awk '{print $1}' | xargs nsrjb

>I would be interested in the script that looks for tape written over 10

>days ago and then marks them recyclable.

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

-------------------------
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient.  If you are not the intended
recipient, please be aware that any disclosure, copying, distribution or
use of this e-mail or any attachment is prohibited.  If you have
received this e-mail in error, please contact the sender and delete all
copies. 
Thank you for your cooperation 

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 
This email with any attachments is confidential and may be subject to legal 
privilege.  
If it is not intended for you please reply immediately, destroy it and do not 
copy, disclose or use it in any way. 

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