Command to eject Dell RD1000 tape

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?
LVL 2
infedonetworkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

honmapogCommented:
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
infedonetworkAuthor Commented:
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
infedonetworkAuthor Commented:
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
infedonetworkAuthor Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
infedonetworkAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Software

From novice to tech pro — start learning today.