Operating System - HP-UX
1833237 Members
2535 Online
110051 Solutions
New Discussion

Help on tape drive status

 
Viswanadhan
Regular Advisor

Help on tape drive status

Hi Admins,

I have hp ux with 11.0 Ver. In this server tape drive configured, and working fine.When i say

# mt -f /dev/rmt/0m status
mt: unknown command "status"

May i know the reason for above error. Do it need to install any depot / SD ?
Let me know the SD / Depot name, and where can i get it.

Regards,
Viswa.
12 REPLIES 12
Tim Nelson
Honored Contributor

Re: Help on tape drive status

Once upon a time HPUX mt command did not have the status option. Is it listed in the 11.0 man pages ?

Dave Hutton
Honored Contributor

Re: Help on tape drive status

Works for me on an 11.0 server:

servera:root /root # mt -f /dev/rmt/c0t0d0DDS status
Drive: HP C1537A
Format:
Status: [0]
File: 0
Block: 0

Viswanadhan
Regular Advisor

Re: Help on tape drive status

For few server
# mt -f /dev/rmt/0m status

is working.

For few servers "mt -f /dev/rmt/0m status" command is not working.

all HP UX are with 11.0 ver.

Regards,
Viswa.
Dave Hutton
Honored Contributor

Re: Help on tape drive status

If you do:
servera:root /root # mt
usage: mt [ -f tapename ] command [ count ]
command is one of:
eof, fsf, bsf, fsr, bsr, rewind, offline, eod, smk, fss, bss, reserve, release, status

Does that one show the status as an option?
Any chance you have some odd hidden chars like some weird backspace chars while typing the command due to termtype being off?

Roberto Arias
Valued Contributor

Re: Help on tape drive status

Hi:

Is the same version of mt? please check this with 'which mt' and 'what /mt'

please tell me answer
The man is your friend
Viswanadhan
Regular Advisor

Re: Help on tape drive status

Hi,

# which mt
/usr/bin/mt

I got same result for all HP UX servers.

Regards,
Viswa.
Dave Hutton
Honored Contributor

Re: Help on tape drive status

To follow up on what Roberto suggested, you would want to run the second suggested command:
servera:root /root # what /usr/bin/mt
/usr/bin/mt:
$Revision: 82.2.1.2 $
PATCH_11_00: mt.o 98/10/20
Laurent Menase
Honored Contributor

Re: Help on tape drive status

you should try a "which mt" and a
/usr/bin/mt -f /dev/rmt/0mn status

and a what /usr/bin/mt
Viswanadhan
Regular Advisor

Re: Help on tape drive status

Hi All,

Now i got the difference between HP UX servers with 11.0ver.

Server1# what /usr/bin/mt
/usr/bin/mt:
$Revision: 82.2 $

Server2# what /usr/bin/mt
/usr/bin/mt:
$Revision: 82.2.1.2 $
PATCH_11_00: mt.o 98/10/20

Where can i get the patch for mt command. May i know the url ?

Regards,
Viswa.
Laurent Menase
Honored Contributor

Re: Help on tape drive status

to check what patch is it do a swlist -l file |grep /usr/bin/mt
Torsten.
Acclaimed Contributor

Re: Help on tape drive status

From the patch readme of PHCO_16748:

mt:
1. Enhancement - status option
2. Enhancement - reserve/release option for shared devices

http://www12.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_16748&sel={hpux:11.00,}&BC=main|search|




But instead of patching unsupported systems you should consider to get at least 11.11 installed.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Viswanadhan
Regular Advisor

Re: Help on tape drive status

na