System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the tape drive status in HPUX 10.2?

 
Sathesh Kumar_1
Occasional Visitor

How to check the tape drive status in HPUX 10.2?

How to check the tape drive status in HPUX 10.2? I want to check my tape drive status as online/offline.
12 REPLIES
Andrew Rutter
Honored Contributor

Re: How to check the tape drive status in HPUX 10.2?

hi,

not very easily in 10.20

in 11. and up we have the status option for the mt command but not in 10.20

there are a few options you can try with the mt command, see the man pages

http://www.cs.bgu.ac.il/~arik/usail/man/hpux/mt.1.html

Andy
AINMS
Respected Contributor

Re: How to check the tape drive status in HPUX 10.2?

try to use this command
#ioscan -funC tape

HTH
AINMS
If it were all easy, we would not have anything to do.
V. Nyga
Honored Contributor

Re: How to check the tape drive status in HPUX 10.2?

Hi Sathesh,

you're using a second account?

Have you tried to check the status with SAM?
For example with 'Backup and Recovery' the system is searching for a available tape drive - so if it's not available I believe it's offline.


HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Suraj K Sankari
Honored Contributor

Re: How to check the tape drive status in HPUX 10.2?

HI,

ioscan -fnC tape

Status should come as CLAIMED

Suraj
T G Manikandan
Honored Contributor

Re: How to check the tape drive status in HPUX 10.2?

if the drive is CLAIMED, you can also use

mt -t /dev/rmt/?? status
V. Nyga
Honored Contributor

Re: How to check the tape drive status in HPUX 10.2?

wow - what happened with Sathesh's comment just before mine?
Admins, please more comments if you change threads ...

V.
*** Say 'Thanks' with Kudos ***
Sathesh Kumar T
Occasional Visitor

Re: How to check the tape drive status in HPUX 10.2?

Hello,

the status is said is CLAIMED, but is don't show anything in SAM, like it online or offline

#mt -t /dev/rmt/0m stat .. is not able show the status output.. reason in 10.2 don't have option like "stat"

thanks

sathesh
Sp4admin
Trusted Contributor

Re: How to check the tape drive status in HPUX 10.2?

Can you tar a file to the drive? try a tar -t /dev/rmt/0m if that's you tape device. You can check with "ioscan -fnC tape"

sp,
Taifur
Respected Contributor

Re: How to check the tape drive status in HPUX 10.2?

Hi Sathesh,

For checking tape drive

#ioscan -funC tape

Try to backup after above command by
#tar -cvf /dev/rmt/0m

Rgds//
Taifur
avizen9
Esteemed Contributor

Re: How to check the tape drive status in HPUX 10.2?

hello

"How to check the tape drive status in HPUX 10.2? I want to check my tape drive status as online/offline."

first of all you should check os has detected your tape drive or not with below command with root user.

ioscan -fnC tape
it should be claim status.
note down the hardware path
for tape drive it should be in /dev/rmt/xx

then try to dump a samll file in tape drive with tar command
cd /etc

tar cvf /dev/rmt/xx/p.tar passwrd
once you applied this command your tape drive LED should start blink,

with ioscan command if its showing claimed and still you cant use then clean tape drive with cleaning tape.

Bijeesh
Respected Contributor

Re: How to check the tape drive status in HPUX 10.2?

Hi
If ioscan command is giving "CLAIMED" status, you can try to take backup using tar or fbackup.
If there is any activity is running you can check using ps command
#ps -ef | grep /dev/rmt/XX
Sathesh Kumar T
Occasional Visitor

Re: How to check the tape drive status in HPUX 10.2?

Thanks to all.. I got resolution for my issue...

I am closing this threat

Thanks & Regards

Sathesh