cozcol
ADSM.ORG Member
Hi Guys and girls,
I am trying to get this script working which will free up almost empty tapes.
Free up tapes which are almost empty
for volume in $(dsmadmc -id=xxxx -pass=xxxx -outfile "select 'MARKER', volume_name from volumes where pct_utilized <10 " | grep '^MARKER' | cut -b 12-) ; do dsmadmc -id=xxxx -pass=xxxx -outfile 'move data ${volume}' ; done
BUT ( The BIG BUT)
Not quite working as desired yet!!!
Script is logging in and the grep and cut are working ok.
BUT the TSM server has some confusion over the variable for volumes.
Any ideas chaps?
ANS8000I Server command: 'move data ${volume}'
ANR2401E MOVE DATA: Volume ${volume} is not defined in a storage pool.
ANS8001I Return code 11.
I am trying to get this script working which will free up almost empty tapes.
Free up tapes which are almost empty
for volume in $(dsmadmc -id=xxxx -pass=xxxx -outfile "select 'MARKER', volume_name from volumes where pct_utilized <10 " | grep '^MARKER' | cut -b 12-) ; do dsmadmc -id=xxxx -pass=xxxx -outfile 'move data ${volume}' ; done
BUT ( The BIG BUT)
Not quite working as desired yet!!!
Script is logging in and the grep and cut are working ok.
BUT the TSM server has some confusion over the variable for volumes.
Any ideas chaps?
ANS8000I Server command: 'move data ${volume}'
ANR2401E MOVE DATA: Volume ${volume} is not defined in a storage pool.
ANS8001I Return code 11.