Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

8937

November 17th, 2010 11:00

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:

  1. Reply to this discussion thread inserting your NetWorker script.  Please also provide a short description.
  2. Use at your own risk.  EMC is not responsible for any damage that may occur with the usage of these scripts.
  3. 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.

NW_Bloggie.png

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

December 8th, 2010 23:00

Received the Bloggie yesterday. Thanks !!!

334 Posts

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.

2 Intern

 • 

5.7K Posts

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

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

334 Posts

December 3rd, 2010 07:00

Half a year?  I still have a few NetWorker Tshirts available.  Let me know if you want one. 

Allan

December 5th, 2010 12:00

always welcome

2 Intern

 • 

5.7K Posts

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

334 Posts

December 6th, 2010 07:00

Done!  They are on the way..

2 Intern

 • 

5.7K Posts

December 6th, 2010 07:00

You're so cool

2 Intern

 • 

5.7K Posts

December 10th, 2010 05:00

Nee knul, foto's die jij ermee hebt gemaakt !

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.

December 10th, 2010 05:00

Check the first post of AllanW

2 Intern

 • 

5.7K Posts

December 10th, 2010 05:00

/me wants pictures !

334 Posts

December 10th, 2010 06:00

Estimate arrival is 12/20!  

2 Intern

 • 

5.7K Posts

December 13th, 2010 02:00

Very good.

No Events found!

Top