Networker

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

2007-12-05 15:01:06
Subject: Re: [Networker] Determine if a media drive is in use
From: "Werth, Dave" <dave.werth AT GARMIN DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 5 Dec 2007 11:59:02 -0800
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