StoreEver Tape Storage
1752574 Members
5030 Online
108788 Solutions
New Discussion юеВ

Barecode reading cmd on HP-UX

 
SOLVED
Go to solution
Wissam Elassal
Advisor

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 5
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
Wissam Elassal
Advisor

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.
Wissam Elassal
Advisor

Re: Barecode reading cmd on HP-UX

thank you, I can now write my script
Wissam Elassal
Advisor

Re: Barecode reading cmd on HP-UX

this to close the thread, thank you