- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Check status of tape drive on OpenVMS
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
Discussions
Discussions
Forums
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
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-20-2006 06:28 AM
тАО04-20-2006 06:28 AM
- Is a tape loaded
- Is the tape write locked
- Is the drive empty
I just did this on my HPUX systems and it was pretty easy to query the tape drive and act based on the return status. At one point we had a program that would mount and then attempt an init but sometimes it caused problems. The HPUX solution was elegant in that it just queried and returned a status.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 11:27 AM
тАО04-20-2006 11:27 AM
Solutionprobably scan the output from
SYS$ETC:SCSI_INFO.EXE and find what you need.
For the Exabyte 8505XL on my XP1000 running
VMS V7.3-2:
************
File SYS$SYSROOT:[SYSMGR]TAPE_NO.OUT;1
76 $! Medium Type ................. 00h
******
File SYS$SYSROOT:[SYSMGR]TAPE_YES.OUT;1
76 $! Medium Type ................. 85h
************
************
File SYS$SYSROOT:[SYSMGR]TAPE_NO.OUT;1
118 $! End-Of-Medium ..................... False
******
File SYS$SYSROOT:[SYSMGR]TAPE_YES.OUT;1
118 $! End-Of-Medium ..................... True
************
************
File SYS$SYSROOT:[SYSMGR]TAPE_YES.OUT;1
77 $! Device-Specific Parameter ... 10h
******
File SYS$SYSROOT:[SYSMGR]TAPE_WP.OUT;1
77 $! Device-Specific Parameter ... 90h
************
Unless you're on a VAX, or some VMS version
without SYS$ETC:SCSI_INFO.EXE, or it's not a
SCSI tape drive, or some other reason, of
course. (Or did I miss something in your
apparently INCOMPLETE inquiry?)
And what was the HP-UX solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:08 PM
тАО04-20-2006 09:08 PM
Re: Check status of tape drive on OpenVMS
Another solution is to make a DCL command file using F$DEVICE and F$GETDVI lexicals.
Saludos.
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:23 PM
тАО04-20-2006 09:23 PM
Re: Check status of tape drive on OpenVMS
if it returns success, then a medium is loaded, and You can procede to mount.
When mounted f$getdvi can be used to check wether it is write protected.
A more-or-less ready to use packack program is my
http://wwwvms.mppmu.mpg.de/~huber/util/main/packack.for
Example:
MPIW10_HUB>set proc/priv=(oper,sysprv,phy_io)
MPIW10_HUB>packack MPIW12$MKB500:
PACKACK status= 420 Hex 1A4 #bytes= 66752
IO$_packack failed forMPIW12$MKB500:
%SYSTEM-F-MEDOFL, medium is offline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:25 PM
тАО04-20-2006 09:25 PM
Re: Check status of tape drive on OpenVMS
I can't say for certain, but this may be able to act as an interface to SCSI query commands.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:29 PM
тАО04-20-2006 09:29 PM
Re: Check status of tape drive on OpenVMS
ROBOT
SHOW
PORT
The SHOW PORT command displays information about a port. The output
includes the type of port and one of these possible states:
o Full or
value of the cartridge occupying the port appears if the media
robot is capable of reading cartridge bar codes.
o Empty -- The port contains no cartridge and is available for
use.
o Unavailable -- The port is unavailable for use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2006 12:41 AM
тАО04-21-2006 12:41 AM
Re: Check status of tape drive on OpenVMS
I thank you all for you responses and will respond back after further review.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2006 12:49 AM
тАО04-21-2006 12:49 AM
Re: Check status of tape drive on OpenVMS
Steven, attached is the hpux script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2006 01:50 AM
тАО04-21-2006 01:50 AM