StoreEver Tape Storage
cancel
Showing results for 
Search instead for 
Did you mean: 

Barecode reading cmd on HP-UX

SOLVED
Go to solution

Barecode reading cmd on HP-UX

Hello,
I am using HP-UX 11v2 and wich to know the command that moves in a tape in a tape changer according to its barcode label (i think that mc is only using slot number. Does it exist? if not, is there another commande that at least returns the barcode label?

Thanks
5 REPLIES
Luk Vandenbussche
Honored Contributor
Solution

Re: Barecode reading cmd on HP-UX

The command

mc -p /dev/rac/... -r IDSM
give also the barcode as output.
So you can write a script which select the slot in which a tape with a certain barcode is located. Then you can move the tapes from a slot

Re: Barecode reading cmd on HP-UX

Thanks, Yes I thought about that at first, and I thought it wld be easier if there was a just a cmd takin care of that.
Now for the option of script, would it better to store the output in a text file and then read from a text file?
Luk Vandenbussche
Honored Contributor

Re: Barecode reading cmd on HP-UX

Your proposition is a possible solution.

But you can also use

mc -p ... | grep BC_Label

if you know the barcode label you are looking for.

Re: Barecode reading cmd on HP-UX

thank you, I can now write my script

Re: Barecode reading cmd on HP-UX

this to close the thread, thank you