1 Rookie

 • 

41 Posts

November 5th, 2009 06:00

I use this command on Red Hat Linux.

nsrjb -LYRv -S 1-5

(L - label, Y - yes, R - relabel, v - verbose, S - slots to label/relabel).

If you are to label new tapes, you will need to specify a pool.

nsrjb -LYRv -S 1-5 -b Mypool

50 Posts

November 5th, 2009 08:00

I usually use this...

nsrjb -L -Y -S 140-143 -b 'ALLNAS INCR' -f /dev/rmt/0cbn

( -b = pool name)

Of course you can check the device name from nsrwatch etc...

18 Posts

November 6th, 2009 02:00

Excellent! Thanks very much for your help. I have gone for the following line and it works great...

nsrjb -L -s BORIS -Y -b Monthly -S 1 EXTNOV09A

We have a couple of sites with single tape drives, will this command line work there as well?

56 Posts

November 6th, 2009 04:00

I have used this kind of script if there is multiple tapes to label:

for i in `cat slots.txt`
do
nsrjb -j jukebox -L -Y -b 'Filesystem' -S $i
if [ $? -ne 0 ]
then
echo "Operation unsuccesful"
exit 1
fi
done

You have to create file where there are list of slots to be labeled. In this case it is named slots.txt. One slot number/line.

This script can be used for other commands too. I have tested this for mminfo also when I have changed retention periods for large amount of savesets.

I don't know if this works on Windows. Propably not.

96 Posts

November 6th, 2009 06:00

With single drives you will have to use nsrmm.
i.e nsrmm -l -b [-y] [-f /path/to/drive]

use -f as there is not only one device
use -y instead of -Y

Peter

Message was edited by:
Peter Heikens
No Events found!

Top