Solved

Command to eject Dell RD1000 tape

Posted on 2012-03-23
5
3,259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

636 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