Antoine's recent post got me thinking about creating an area where you can share your scripts.
Here are the guidelines:
Reply to this discussion thread inserting your NetWorker script. Please also provide a short description.
Use at your own risk. EMC is not responsible for any damage that may occur with the usage of these scripts.
Understand that scripts are not supported by EMC. Support cannot help with any of your scripting activities.
As an incentive to share your script, everyone that replies to this post with a script will have their named entered into a raffle to win a NetWorker Community
Sony Bloggie video camera! Raffle will be held on Dec.1st.
Let's get started..
Below is Antoine's.
----------------------------
I've once created 2 scripts.
1 to determine what tapes were 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/she 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
antoineschokker
1 Rookie
•
70 Posts
2977
0
Posted December 8th, 2010 23:00
Received the Bloggie yesterday. Thanks !!!