- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Barcode script for tape lib
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2001 09:09 AM
04-16-2001 09:09 AM
The lib is able to read barcodes. I am looking for a script to read the barcode data and print it out to a file.
My plan is to have the data automatically sent to Informix. I can do the informix end but I have no clue on how to extract the barcode data from the library.
Thanks,
Craig A. Sharp
Roush Industries
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2001 11:47 AM
04-16-2001 11:47 AM
Re: Barcode script for tape lib
The script would be very similar to this:
ROBOT=/dev/robot/c2t3d0 # robotics device
echo "stat" > /tmp/controlfile
/opt/omni/lbin/uma -ioctl $ROBOT -barcode < /tmp/controlfile > /tmp/list
The output file /tmp/list should have the barcode as the fourth field of each output line.
I think that the uma utility is available from HP w/o purchasing OB2 (at least the man page hints at this.) If you can't get the uma utility you will probably have to write a c program to do a scsi inquiry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2001 12:12 PM
04-16-2001 12:12 PM
Re: Barcode script for tape lib
man 1m mc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2001 01:31 PM
04-17-2001 01:31 PM
Re: Barcode script for tape lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2001 01:33 PM
04-17-2001 01:33 PM
Re: Barcode script for tape lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2001 05:36 AM
04-18-2001 05:36 AM
Re: Barcode script for tape lib
Thank you for your replies. We do not use Omniback. We had some serious problems that prevented us from using that solution.
I will checkout the MC command and see if that will do what I need.
Please let me know if there are any other ideas not usind Omniback.
Thanks
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2001 07:06 AM
04-18-2001 07:06 AM
SolutionROBOT=/dev/robot/c2t3d0 # SCSI pass-thru robotics device (set to your picker device)
mc -p $ROBOT -r S > /tmp/list.txt
The output looked like this
ST_slot_1 FULL 000107
ST_slot_2 EMPTY
ST_slot_3 FULL 000187
.
.
.
The 3rd field is the barcode. It appears that MC will dothe job.