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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which volumes belong to which server?

Status
Not open for further replies.

UnixSkunk

IS-IT--Management
Oct 16, 2002
86
US
Hi, everyone.
I have about 190 LTO tapes, and I need an easy way to sort them. I was going to scan the barcode labels into a text file, then do the following.

for i in `cat tapenames`
do
mminfo -a -r 'volaccess,volume,%used,pool' -q volume=$i
done.


All I get though, is the response
mminfo: no matches found for the query

This happens if I use just the tapename, also
mminfo -a -r 'volaccess,volume,%used,pool' -q volume=CD1206L1
mminfo: no matches found for the query

When I go to the GUI, and look under volumes, the tapes are listed there just fine.
Can anyone tell me why this mminfo command(ANy mminfo command) isnt showing me if the volume is available from that machine/used on that machine? Thanks again!

UnixSkunk - Tux's Evil Nemesis
 
Try this:
mminfo -a -r 'volaccess,volume,%used,pool' -q 'volume=CD1206L1'
 
Hi, Serbtastic.
Sorry, but this didnt work either....Thanks! ANyone know why its not working?

UnixSkunk - Tux's Evil Nemesis
 
Hi, everyone....
I found out WHY it wasnt working. I imported the file from a Windows based machine....and every line, when I vi the file, is ended by a CTRL-M. When I removed the CTRL-M's, it worked without a problem. Many thanks!

UnixSkunk - Tux's Evil Nemesis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top