- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Hacked Script
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-23-2002 12:29 PM
04-23-2002 12:29 PM
I have a very bad way to find out were a tape is located within my Surestore E tape lib.
It currently consistes of three scripts and a few files. I was wondering, Is there a better way to do this without all the mess. Maybe just all in one script. My scripts are as follows,
uma script
-------------------
#! /bin/sh
/opt/omni/lbin/uma -ioctl /dev/rac/tl1robot -barcode -device /dev/rmt/tl1d0 /dev
/rmt/tl1d1 /dev/rmt/tl1d2 /dev/rmt/tl1d3 /dev/rmt/tl1d4 /dev/rmt/tl1d5 /dev/rmt/
tl1d6 /dev/rmt/tl1d7
collect script
-----------------
#! /bin/sh
/opt/omniback/lbin/runuma < ./commands > drive_slots
commands file
---------------
stat d
stat x
stat s
Then I just grep the tape ID from the drive_slots file to find what slot or drive my tape is in.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 12:39 PM
04-23-2002 12:39 PM
Re: Hacked Script
/opt/omni/lbin/uma -ioctl /dev/rac/tl1robot -barcode << EOF
stat d
stat x
stat s
EOF
or you could just use mc:
mc -p /dev/rac/tl1robot -r IDSM
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 12:45 PM
04-23-2002 12:45 PM
Re: Hacked Script
omnimm -repository "Library_Name". You can then pipe this output to awk or Perl to get whatever format you like. You don't have to worry about device paths since this is part of the OB2 device database. Moreover, OB2 commands are much safer than uma because there is no chance of confusing OB2's database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:20 PM
04-23-2002 01:20 PM
Re: Hacked Script
But the main ression I check with uma is because OB2 was reporting that a drive is somewhere that it is really not. So, I must use uma to find the real location.
Pleace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:25 PM
04-23-2002 01:25 PM
Re: Hacked Script
omnimm -repository_barcode_scan "Library_Name"
This will return the data AND fix the database - something that you would need to do in any case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:51 PM
04-23-2002 01:51 PM
Re: Hacked Script
So what would happen if it turns out that a tape in a drive? Will OB2 try to eject that tape to the correct slot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 02:03 PM
04-23-2002 02:03 PM
SolutionIn my case, I outbushwhack this by making sure that each drive is physically connected to two hosts. I then have two OB2 logical drives and one physical drive. I can then use uma on the cell server to offl any hung drives. In the SCSI world it's done like this:
HostA SCSI ID7 ------ Drive SCSI ID 1 ------ HostB SCSI ID6. The terminators are enabled on both controllers. The two OB2 logical drives should share a common lock name to prevent simultaneous use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 06:28 AM
04-24-2002 06:28 AM
Re: Hacked Script
I have one last question for 10 points
Can these commands affect anything by running them?
Ie. Cause a backup to fail or something
mc -p /dev/rac/tl1robot -r IDSM
omnimm -repository "Library_Name???
omnimm -repository_barcode_scan "Library_Name"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 06:44 AM
04-24-2002 06:44 AM
Re: Hacked Script
The real answer to your problem is to find out why tapes are being left in drives. This occasionally happens in a busy backup environment but these occurences should be very infrequent (on the order of 1 every few weeks - mechanical systems sometimes fail) but should in no way be happening on a routine basis. If you fix this problem then everything becomes moot. You need to address the real problems rather than the symptoms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 06:54 AM
04-24-2002 06:54 AM
Re: Hacked Script
We don???t have tapes stuck in our drives very often. I realize that thing are mechanical and I should expect it to happened from time to time. (We do have a very busy backup environment). So, I???m just trying to get my thoughts together and find the best way to resolve the issue when it does happen.
Any other pointers feel free to post.
-Yates