This post is more than 5 years old
334 Posts
0
8937
Share your script and be entered into a raffle...
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
echo %DATE% %TIME% Tapes are loaded >> d:\scripts\log\Autoload_result.txt
nsrjb -d -N >> d:\scripts\log\Autoload_result.txt
antoineschokker
70 Posts
0
December 8th, 2010 23:00
Received the Bloggie yesterday. Thanks !!!
AllanW1
334 Posts
0
November 30th, 2010 08:00
No replies on this? I thought it would be fun to see some scripts. Only a few days left and Antoine has a good chance in the raffle right now.
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 3rd, 2010 06:00
Congratulations Antoine ! Welcome to the club, dear colleague !
These EMC Forums are great, aren't they ? Maybe we can claim a trophy shelve back at the office ? I received a trophy myself, about half a year ago
antoineschokker
70 Posts
1
December 3rd, 2010 06:00
Allan.... a man of his words. Just receive a mail I won the raffle.
But Allans idea is great. So when you use a script or want to, post here.
regards
Antoine
AllanW1
334 Posts
0
December 3rd, 2010 07:00
Half a year? I still have a few NetWorker Tshirts available. Let me know if you want one.
Allan
antoineschokker
70 Posts
0
December 5th, 2010 12:00
always welcome
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 6th, 2010 06:00
Cool ! If you send one to Antoine, please send some more for other colleagues (Antoine is a colleague of mine)
My size is XXL.
Anything with EMC on it is welcome . I'm at an Hitachi dominated site . I WILL wear EMC stuff
AllanW1
334 Posts
0
December 6th, 2010 07:00
Done! They are on the way..
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 6th, 2010 07:00
You're so cool
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 10th, 2010 05:00
Nee knul, foto's die jij ermee hebt gemaakt !
antoineschokker
70 Posts
0
December 10th, 2010 05:00
I know, but those are not for publishing .
As soon as qe receive the EMC-shits I post some pictures.
antoineschokker
70 Posts
0
December 10th, 2010 05:00
Check the first post of AllanW
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 10th, 2010 05:00
/me wants pictures !
AllanW1
334 Posts
0
December 10th, 2010 06:00
Estimate arrival is 12/20!
RRR
2 Intern
2 Intern
•
5.7K Posts
0
December 13th, 2010 02:00
Very good.