Networker

Re: [Networker] Problem with depositing tapes

2002-08-28 17:50:53
Subject: Re: [Networker] Problem with depositing tapes
From: Scott Kampen <SKampen AT VERISIGN DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 28 Aug 2002 14:52:47 -0700
Here is a simple shell script I wrote which works great for adding one tape
at a time to a slot from the I/O (mailbox) port.  I have a SunE4500 as a
backup server and a 600 Qualstar unit.  Therefore you would need to make
sure you modify this script to meet your environment needs.  As can be seen
below, the script name is addtapes and it is saved in the /usr/local/bin
directory.  You can change that as well.

Scott


##################ADD TAPES SCRIPT###############################
#!/bin/ksh
echo
echo "Please add the tape to the I/O port by pressing the * + menu button"
echo "at the same time, which is on the front of the tape unit.  Then enter
the"
echo "slot number you want to place the tape in."
echo
echo "What slot do you want to add the tape too?"
read slot
/usr/sbin/nsrjb -d -j "YOUR-TAPE-UNIT-NAME-HERE" -s
YOUR-BACKUP-SERVER-NAME-HERE -v -S $slot
/usr/sbin/nsrjb -IE -v -S $slot
echo "Would you like to add another tape?"
read nexttape
if [ "$nexttape" = "y" ]
        then
/usr/local/bin/addtapes

else
echo "Now that you've added tape(s) to the system, please remember"
echo "to do an inventory to slots if needed."
fi

###################END OF SCRIPT#################################












-----Original Message-----
From: Stan Horwitz [mailto:stan AT TEMPLE DOT EDU]
Sent: Wednesday, August 28, 2002 11:12 AM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] Problem with depositing tapes


On Thu, 22 Aug 2002, Lewis, Terry {Info~Palo Alto} wrote:

> Stan,
>
>   In my experience with depositing tapes into a jukebox,
> I've either 1) done the deposit at a time when no volumes
> are mounted, or 2) specified particular slot numbers for
> the deposit operations.  Whenever I've just run a deposit
> operation with no slot numbers specified, the deposited
> volumes wind up in the first open jukebox slots.  Whether
> this is a function of NetWorker processing or jukebox
> command execution, I don't know.  I just know to now
> be wary of non-specific deposit commands.

Thanks Terry and everyone else who responded to my question. I am working
on a PERL script to sense which slots are empty and deposit tapes only to
those slots, rather than allowing nsrjb to figure out which slots to use.
The script is probably done. As soon as I need to deposit some tapes, I
will give the script a try. Anyone who wants a copy of this script is
welcome to it if you let me know. Its for PERL on Unix, but it should work
on any system that has PERL on it with a small modification or two.

--
Note: To sign off this list, send a "signoff" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=