- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ejecting Ignite tape
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
тАО06-18-2003 07:29 AM
тАО06-18-2003 07:29 AM
How can I eject the DDS3 ignite tape from the tape device using the command line option?
Thanks,
Nikee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 07:31 AM
тАО06-18-2003 07:31 AM
Re: Ejecting Ignite tape
# mt -t /dev/rmt/0m offl
...for examople.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 07:32 AM
тАО06-18-2003 07:32 AM
Re: Ejecting Ignite tape
If your tape is the default device - /dev/rmt/0mn - then use
mt offl
If not default then use
mt -f /dev/rmt/Xmn offl
where X=instance # EX: 1,2, etc.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 07:34 AM
тАО06-18-2003 07:34 AM
Re: Ejecting Ignite tape
and i thought i was lazy :)
I usually just hit the button....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 07:36 AM
тАО06-18-2003 07:36 AM
Re: Ejecting Ignite tape
mt -f /dev/rmt/0mn rew
if (( $? > 0 ))
then
# print error
fi
I put this one at the start of all my ignite scripts, to get it to detect that there is a tape in the drive. No tape = non-zero Return Code, valid tape = zero Return code.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2003 08:05 AM
тАО06-18-2003 08:05 AM
Re: Ejecting Ignite tape
On HP-UX 11.X 'mt -t' is obsolete. You should actually use 'mt -f /dev/rmt/?mn command', so to eject use:
# mt -f /dev/rmt/?mn offl
If you are still on HP-UX 10.20 then you must use the '-t' as 10.20 does not support '-f'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2008 12:47 AM
тАО09-05-2008 12:47 AM
Re: Ejecting Ignite tape
#!/bin/sh
teypler=$(ioscan -fnC tape | grep mn | awk '/dev/rmt {print $1}')
#echo $teypler
for I in `echo $teypler`
do
RC=$(mt -f $I status |grep Status|awk '{print $2}' |tr -d '['|tr -d ']')
if [ $RC -gt 0 ]
then
echo " There is a tape in the drive of $I :Status[$RC]"
else
echo " Tape Drive is empty [$I]"
fi
done