Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chgtest utility to run inventory on a tape changer

Status
Not open for further replies.

RockyBulwinkle

Technical User
Sep 16, 2003
2
0
0
GB
I am using a DLT 4500 Tape Changer and ASO 6.61

If I run an inventory as a scheduled task via a batch file it works as expected, also running the batch file from a DOS Prompt works.

In the Batch file is the line below

c:\aso\chgtest changer:6 inventory startslot:0 endslot:3

I should be able to run this as a pre job but fails to run or the log shows as Run Command with no errors but the tape changer does not Inventory

The documentation states -a switch should be used ?? How ?

I have used it within the Pre Job Field and also within the batch file neither appear to work i.e.

-a c:\aso\inventory.bat

I must be missing some thing simple but what.

Any assistance with this would helpful. I could use the Unmount Mount option but this need the same switch or stop and restart the tape engine but the inventory should work. T

The scheduled task works but if the job is modified to a different start time it maybe out of synch with the scheduled task and likely to be forgotten as not part of the backup task.

The documentation states

Usage :chgtest [options]
ex. chgtest changer:3 inventory startslot:0 endslot:3
options
-v :- Changer Device Management Menu
changer:# :- Changer Device Number
-a :- Required in order to run a CHGTEST Erase/Format/Mount/Inventory as an ARCserve Pre/Post job
inventory :- Perform changer inventory at startslot to endslot
erase :- Perform changer erase at startslot to endslot
startslot: :- Starting slot for inventory/erase (zero based)
endslot: :- Ending slot for inventory/erase
clean :- Perform a cleaning operation on tape drive
-r :- Return Tape To Slot
drive:# :- Device number of drive to be clean
mount :- Perform a mount from startmagazine to endmagazine
dismount :- Perform a dismount from startmagazine to endmagazine
startmagazine: :- Starting magazine for mount/dismount
endmagazine: :- Ending magazine for mount/dismount
load :- Ex: changer:# drive:# startslot:#
unload :- Ex: changer:# drive:#
export :- Ex: changer:# startslot:#

Rocky
 
The -a option is used as part of the chgtest command, so it has to go after and not before chgtest.
 
Thank you for the reply

I have tried
c:\aso\chgtest -a changer:6 inventory startslot:0 endslot:3

First thing I tried, which why I asked if it should be used in a different way as this did not appear to work.

but suspect I have not tried in the Pre field with quotes
"c:\aso\chgtest -a changer:6 inventory startslot:0 endslot:3"

It is obviously the way it is meant to be used so I will work on it over the weekend. If I use it from a batch file the error messgaes generate to the shell not ASO log. By adding the command to the pre field the error message will be in the ASO Log.

Rocky
 
I no longer have a changer so it is not possible to try it out myself.

There are two parts to this:
1) chgtest
2) Pre command

It might be helpful to try a different command just to verify the Pre command is working at all. For example try something simple like mkdir test. Then once you have Pre command working try it with chgtest. Did you try the online help, perhaps it will give some examples.
 
I found a sample command in my notes showing the -a option,
c:\progra~1\comput~2\arcserve\chgtest.exe changer:3 -a -z mount startslot:0 endslot:6
 
Try the following:
chgtest changer:X inventory startslot:1 endslot:14
Where X is the device number of the library
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top