1837962 Members
3224 Online
110124 Solutions
New Discussion

get details of tape

 
SOLVED
Go to solution
Marton Ferenc
Advisor

get details of tape

I created a make_tape_recovery tape and now i wanto to know more about the tape.
When it was created and so on. How can i do that?
Thx
J5000
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: get details of tape

zcat -V /dev/rmt/0m

That or some variation of it will get you the information you need.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bryan D. Quinn
Respected Contributor

Re: get details of tape

Hello,

As for the creation date, you can do the following:

dd if= | strings -a | grep -i "Recovery tape created"

In my experiences, this has worked well but takes a while to run.

-Bryan
John Dvorchak
Honored Contributor
Solution

Re: get details of tape

To find the creation date of an Ignite tape I use the following:

dd if=/dev/rmt/0m of=/tmp/tapelif bs=2048 count=10;lifls -l /tmp/tapelif

This will produce the following:

10+0 records in
10+0 records out
volume ISL10 data size 281239 directory size 3 04/02/06 09:31:51
filename type start size implement created
===============================================================
ISL -12800 16 306 0 04/02/06 09:31:51
AUTO -12289 328 1 0 04/02/06 09:31:51
INDEX BIN 336 1 0 04/02/06 09:31:51
CONFIG BIN 344 143 0 04/02/06 09:31:51
HPUX -12928 488 848 0 04/02/06 09:31:51
FWWKAR6 BIN 1336 1 0 04/02/06 09:31:51
FWWKAR7 BIN 1344 1 0 04/02/06 09:31:51
FWWKAR8 BIN 1352 1 0 04/02/06 09:31:51
INSTALL -12290 1360 37472 0 04/02/06 09:31:57
INSTALLFS -12290 38832 35840 0 04/02/06 09:32:03
VINSTALLFS -12290 38832 35840 0 04/02/06 09:32:03
WINSTALLFS -12290 38832 35840 0 04/02/06 09:32:03
VINSTALL -12290 74672 43203 0 04/02/06 09:32:09
WINSTALL -12290 117880 46823 0 04/02/06 09:32:15
INSTCMDS BIN 164704 12646 0 04/02/06 09:32:16
SYSCMDS BIN 177352 61281 0 04/02/06 09:32:18
SCRIPTS BIN 238640 42 0 04/02/06 09:32:18


The date is in the format yy/mm/dd but you can write a script to format it anyway you want.

As far as other info, other than diskinfo I am not sure what you are looking for?
root> diskinfo /dev/rmt/0m
SCSI describe of /dev/rmt/0m:
vendor: HP
product id: C1537A
type: sequential access
size: 11539691 Kbytes
bytes per sector: 1024

If you want to extract a file from the tape, you can tar the data portion, after the tapelif area. First you must rewind the tape and then move past the lif area with the no rewind option (0mn):

mt rew
mt -f /dev/rmt/0mn fsf 1
tar (what ever command you want)

Good luck,
John
If it has wheels or a skirt, you can't afford it.
doug mielke
Respected Contributor

Re: get details of tape

If you created it on this system you could look in /var/opt/ignite/logs for some dates and info.