• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3467
  • Last Modified:

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?
0
infedonetwork
Asked:
infedonetwork
  • 4
2 Solutions
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now