StoreEver Tape Storage
1751854 Members
5663 Online
108782 Solutions
New Discussion

Re: reading tape barcode using IOCTL and HP SSL 1016 autoloader

 
BABLIN
New Member

reading tape barcode using IOCTL and HP SSL 1016 autoloader

I use a HP SSL1016 autoloader with a barcode reader and a drive Ultrium 460.
When I import a tape with a barcode into the autoloader, I can see the barcode label on autoloader display.
But I need to get this label by using IOCTL for my software. I actually use the SIOC_ELEMENT_STATUS IOCTL code with element_status structure (see in scsi.h file in HPUX 11). An attribute of this structure is 'pri_vol_tag', and it normaly would be filled with the barcode label, but it does not.

Can someone help me ??

Thank
cyril
1 REPLY 1
Kurt Beyers.
Honored Contributor

Re: reading tape barcode using IOCTL and HP SSL 1016 autoloader

Bablin,

The mc command (see man pages for more details) give you the barcode label as well.

mc -p robot_device_file -r slot_number will give the following output:

ST_slot_3 FULL 000187


The thirth fiels (000187) is the barcode.

Kurt