Solved

Command to eject Dell RD1000 tape

Posted on 2012-03-23
5
3,081 Views
Last Modified: 2016-11-23
Hi

I have a Dell RD1000 drive and I'm using Shadow protect for backups.
Problem I have is that the person in charge with the tapes can't eject the tape if the shadow protect services are runing so I made a script to stop those services around 8 AM but for some reason some times they start back on their own or maybe they just don't stop on the command.
So I was wondering if is a way to add to my batch file after the services are stop a command to eject the tape out or even to force the eject even if the services are not stop?
0
Comment
Question by:infedonetwork
  • 4
5 Comments
 
LVL 28

Assisted Solution

by:honmapog
honmapog earned 500 total points
ID: 37761072
Make sure you have the RD1000 tools installed, which should install an RDXMon service.
The following  article has a script rather than 1 command, which claims to do the eject. http://www.experts-exchange.com/Storage/Removable_Backup_Media/Q_23641549.html. Hope that helps.
0
 
LVL 2

Author Comment

by:infedonetwork
ID: 37761196
See my problem is that the tape does not eject if the Shadowprotect services are runing.
Have the drive eject it automaticly is nice but not a necessity.
So I create a script to stop those services on the mornign before the user manually eject the tape and some times it works some times it does not.
Not sure if the script that is on schedule taks just don't run even if it say that it was executed or someting else restart the services after they stop.
I stop them manually and wait for a while and they did not start so who know's.
I want to find something to eject no matter if the service is stop or not.
I did try the VB script and also the freeeject file and did not work if the services was started.
I'm sure if I stop it then it will work.
A command that will force the eject even if the drive is in use will work.
0
 
LVL 2

Author Comment

by:infedonetwork
ID: 37761239
Ok so I'm gettign there by creating the following batch file:

sc \\server stop ShadowProtectSvc
sc \\accpac stop ShadowProtectSvc
c:\freeeject.exe f:

So I have one physical Server call Host and is running 2 Virtual Server on hyper V call server and accpac.
The Host is the one were the RD1000 is configure with the tools and is the one that has the F: drive for the tape.

Server and Accpac are the servers that run Shadow protect on it and that need the services stop before I can eject the tape on host.
So I figureout that if I create a batch file on the host to stop remothly the services on those 2 servers and then use the freeject file that should work.
It almost did.
The service stop fine on the server that is also the domain controler but i get an acess denied on the accpac when I try to stop it.
Now the Host is on a workgroup that has the same name as the domain but is a workgroup.
The 2 servers are on a domain.
Is there a way to send credentials via the batch file or maybe assign permission to everyone to stop the service on accpac?
0
 
LVL 2

Accepted Solution

by:
infedonetwork earned 0 total points
ID: 37761431
I got it to work
I create the followign batch file on the host
sc \\server stop ShadowProtectSvc
sc \\accpac stop ShadowProtectSvc
c:\freeeject.exe f:

The reason I got a access denied on the Accpac was because no local admin with the same user name and password that was on the host.
So I create a local account with the same user name and password on both servers and I assign them to the administrator group then Voila.
It all work the way I want it.
0
 
LVL 2

Author Closing Comment

by:infedonetwork
ID: 37780946
I had to use a combination of the file that I found on the expert link (Freeeject.exe) with a script that I create. Neider solution work for me allone but combined it did the job.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now