#
#  Configuration file for media changer devices using the mtx command
#
#
# typical output of mtx status:
#
# Data Transfer Element:  Full (Storage Element 1 Loaded)
# Storage Element 1:      Empty
# Storage Element 2:      Full   
# Storage Element 3:      Full
# Storage Element 4:      Full
# Storage Element 5:      Full
# Storage Element 6:      Full
#
# typical output of mtx inquiry
#
# Vendor ID: 'HP      ', Product ID: 'C1557A          ', Revision: 'U812'
#

#
# Replacements in the commands:
#
# pattern  replaced with
#
# %d       streamer device filename
# %D       changer device filename
# %n       the origin number, if counting starts with 1
# %m       the origin number, if counting starts with 0
# %N       the target number, if conuting starts with 1
# %M       the target number, if counting starts with 0
#
# Commands to move cartridges
# (moves, that are not supported, should be commented out)
#
Move Drive To Slot Command:	mtx -f %D unload %N %m >/dev/null

Move Slot To Drive Command:	mtx -f %D load %n %M >/dev/null

#Move Drive To Loadport Command:	

#Move Loadport To Drive Command:	

#Move Slot To Loadport Command:	

#Move Loadport To Slot Command:	

#Move Drive To Drive Command:	

#Move Slot To Slot Command:	mtx -f %D transfer %n %N

#Move Loadport To Loadport Command:	

#
# Commands to find free resources
#
ListEmpty Slots Command:	mtx -f %D status | grep '^[ 	]*Storage Element [0-9]*:.*Empty$' | awk '{print $3}' | sed 's/:.*$//g'

#ListEmpty Loadports Command:	
