Link to home
Start Free TrialLog in
Avatar of infedonetwork
infedonetwork

asked on

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?
SOLUTION
Avatar of honmapog
honmapog
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of infedonetwork
infedonetwork

ASKER

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.
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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.