Unsolved
This post is more than 5 years old
2 Posts
1
5993
November 15th, 2010 10:00
List Backup tapes used by networker
Hi,
I am very new to networker so please bear with me, My question is there a quick way to list the tapes used by the Networker for the backups? At the moment we run a save sets report specifying the start time/date and end time/date, this works but the report lists the tapes a number of times. The other way we can determine what tapes have been used is to look at last access times. Is there any way we can run a script that would list all the tapes used for a backup and if possible eject the tapes so that in the morning, we can print off a report and then swap the tapes ready for the next backup? Any help would be appreciated. Pramod
0 events found
No Events found!


sweller1
78 Posts
0
November 15th, 2010 10:00
Hello Pramod,
The mminfo command is your friend.
You can do a man on it or read more in the attached Command Reference Guide.
As well, a great resource for you as a new NetWorker user is the TempleListServ run by Stan Horwitz. You can join here, if you are not already a member: https://listserv.temple.edu/cgi-bin/wa?SUBED1=networker&A=1
Ask them again and give the use case you describe. Chances are someone will aready have a script or will help you in great detail to get this accomplished.
Hope this help!
Steve
1 Attachment
76crg.pdf
pramodbhimji
2 Posts
0
November 15th, 2010 12:00
Steve,
Many thanks for the info.
Pramod
antoineschokker
1 Rookie
•
70 Posts
1
November 17th, 2010 04:00
Pramod,
Perhaps this helps:
I've once created 2 scripts.
1 to determine what tapes where used during the last backup
with these results, the script is used to withdraw those tapes into the mailslot and print the results so the Tapehandler has all the info he needs:
@ECHO OFF
REM Search in mediadatabase which tapes are used last night.
mminfo -s "< >" -av -t yesterday -q "location=< >" -r "volume" > "d:\scripts\which_tape_eject.txt"
REM Use results in TXT-file as parameter here
REM To withdraw the tape
for /f %%I in (d:\scripts\which_tape_eject.txt) do nsrjb -w -N %%I >> d:\scripts\log\Eject_result.txt
REM Create result.txt whit the tape which comply.
echo %date% %TIME% > d:\scripts\log\ROULATIE_result.txt
for /f %%I in (d:\scripts\which_tape_eject.txt) do echo Tape %%I placed in the Mailslot >> d:\scripts\log\ROULATIE_result.txt
REM Print this file.
print /D:"< >" d:\scripts\log\ROULATIE_result.txt
Second script is to load all the tape from the mailslot.
@ECHO OFF
REM Load all the tapes from the mailslot
echo %DATE% %TIME% Tapes are loaded >> d:\scripts\log\Autoload_result.txt
nsrjb -d -N >> d:\scripts\log\Autoload_result.txt