Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
cancel
Showing results for 
Search instead for 
Did you mean: 

listing label contents

himacs
Super Advisor

listing label contents

Hi Admin.

How to list the label contents in the LIF area.Also need to list BDRA.

Please suggest

Regards
himacs
17 REPLIES
Hakki Aydin Ucar
Honored Contributor

Re: listing label contents

Hi,

try this;
lifls - lists the contents of a LIF directory on standard output.
Steven E. Protter
Exalted Contributor

Re: listing label contents

Shalom,

lifls is the utility of choice for listing these contents.

Most systems administrators direct this to a file for easier viewing.

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
James R. Ferguson
Acclaimed Contributor

Re: listing label contents

Hi Himacs:

Look at 'lifls(1)' and 'lifcp(1)'.

Regards!

...JRF...
himacs
Super Advisor

Re: listing label contents

Hi Thanks for the response.

Lifls lists the contents of LIF area. I want to list the contents from LABEL which found in lif area.

lifls -l /dev/dsk/c3t0d0s2
volume ISL10 data size 7984 directory size 8 06/10/27 14:23:07
filename type start size implement created
===============================================================
ISL -12800 584 242 0 06/10/27 14:23:07
AUTO -12289 832 1 0 06/10/27 14:23:07
HPUX -12928 840 1024 0 06/10/27 14:23:07
PAD -12290 1864 1468 0 06/10/27 14:23:07
LABEL BIN 3336 8 0 10/04/14 02:19:59


Regards
himacs
James R. Ferguson
Acclaimed Contributor

Re: listing label contents

Hi (again):

# lifcp /dev/rdsk/cXtYdZ:LABEL -

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: listing label contents

Use


# lvlnboot -v


LABEL stores the values set by

# lvlnboot -s|-b|-r|-d ...

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!   
Torsten.
Acclaimed Contributor

Re: listing label contents

See also

http://docs.hp.com/en/B2355-60127/mkboot.1M.html

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!   
Hakki Aydin Ucar
Honored Contributor

Re: listing label contents

>JRF: # lifcp /dev/rdsk/cXtYdZ:LABEL -

I tried in 11.23
# uname -a
HP-UX host1 B.11.23 U ia64 3515879026 unlimited-user license
# lifcp /dev/rdsk/c3t6d0s2:LABEL -
Jà µ?j<
`
`
`
`2Jà µ?#

And in 11.11 ;
# uname -a
HP-UX host2 B.11.11 U 9000/800 733937691 unlimited-user license
zprev01# lifcp /dev/rdsk/c1t2d0:LABEL -
AÃ 1/j<
`âDù` ù`@ù`@2Aà 1/#

is there any way to convert this to a format human readable ?

Torsten.
Acclaimed Contributor

Re: listing label contents

As said before, use

# lvlnboot -v



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!   
Hakki Aydin Ucar
Honored Contributor

Re: listing label contents

>Torsten: As said before, use

# lvlnboot -v

I am already familiar and using lvlnboot . I just want learn more LIF copy "lifcp" command.
Hakki Aydin Ucar
Honored Contributor

Re: listing label contents

For Example:

it makes sense :
# lifcp /dev/rdsk/c3t6d0s2:AUTO -
hpux

probably the reason is that it is ASCII and others are BINARY ?
Torsten.
Acclaimed Contributor

Re: listing label contents

>> . I just want learn more LIF copy "lifcp" command.

Do

# man lifcp

It copies files from filesystem to LIF and back.

Some files are just binary, you cannot read them.

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!   
Torsten.
Acclaimed Contributor

Re: listing label contents

If you want to learn more about the LIF files take a look into the ignite administrator guide!

http://www.hp.com/go/ignite-UX

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!   
Dennis Handly
Acclaimed Contributor

Re: listing label contents

>Torsten: Some files are just binary, you cannot read them.

Right. You can use xd(1) but I don't see any ascii chars:
$ xd -tx4 -tc LABEL
0000000 43303e73 8b7f6a3c 1 0
C 0 > s 213 177 j < \0 \0 \0 001 \0 \0 \0 \0
Dennis Handly
Acclaimed Contributor

Re: listing label contents

I should mention that if you are on Integrity, you should also look info the efi_* functions:
efi_ls(1M) efi_cp(1M), etc
Hakki Aydin Ucar
Honored Contributor

Re: listing label contents

>Denis: xd

Great!

# lifcp /dev/rdsk/c3t6d0s2:LABEL - |xd -tx4
0000000 4aa5f33f 8b7f6a3c 1 0
0000010 0 b60 1c0000 0
0000020 0 9c0b60 108000 0
0000030 0 1c0b60 800000 0
*
0000050 0 0 0 0
*
0000100 0 0 0 32101418
0000110 0 0 0 0
*
00001d0 0 0 0 10000
00001e0 4aa5f33f 0 0 0
00001f0 0 0 0 0
*
0000800

R.K. #
Honored Contributor

Re: listing label contents

Hi Himacs..

I know its late..just came across this thread so thought of sharing what I have..might add more info to this thread.

Please see the attachment.

Thanks..
RK
Don't fix that what ain't broke