
UNSOLVED
Responses (5)
Solutions (0)
- 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.Reply

lpamintuan
1 Rookie
•
41 Posts
534
0
Posted November 5th, 2009 06:00
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