Operating System - HP-UX
1820072 Members
2658 Online
109608 Solutions
New Discussion юеВ

Re: Can we get SAM LVM reports from the command line?

 
SOLVED
Go to solution
Babak
Valued Contributor

Can we get SAM LVM reports from the command line?

Hi,
Does anyone know if there is anyway to get any of SAM's LVM reports from the command line? (I am specifically interested in the disk devices report).
All hints and helps are greatly appreciated!

thanks,
B.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: Can we get SAM LVM reports from the command line?

Hi Babak:

A gratuitous LVM configuration report is generated every time you do an Ignite 'make_tape_recovery' (Ignite 3.2 or later). The file is:

/var/opt/ignite/recovery/latest/manifest

Regards!

...JRF...
Sridhar Bhaskarla
Honored Contributor

Re: Can we get SAM LVM reports from the command line?

You can use the print_manifest command to generate similar kind of information.

#/opt/ignite/bin/print_manifest > /tmp/manifest

Edit this file and search for "Disk Layout"

There is no explicit command used by SAM to generate the report you want. Some of the commands are in /usr/sam/lbin directory. But I don't think they will be of good help to you.

You need to write a script using text parsing if you want similar report using a combination of LV commands.

print_manifest should give you pretty decent output though.

There is also a supported "sysinfo" script provided by HP. You can search for this string in this forum.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Paula J Frazer-Campbell
Honored Contributor

Re: Can we get SAM LVM reports from the command line?

Hi
This script should provide what you require.



HTH

Paula
If you can spell SysAdmin then you is one - anon
linuxfan
Honored Contributor

Re: Can we get SAM LVM reports from the command line?

Hi,

If print_manifest doesn't suffice your needs, there are some scripts which are available.

1. LVMcollect
(Paula has already attached the script )

2. VGcollect which is part of Xvg
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/xvg/

3. Ofcourse there are some commands in /usr/sam/lbin , but if none of the above works ffor your environment, you could modify or write a script from scratch using some of commands like (ioscan, vgdisplay, lvdisplay, pvdisplay etc..)

If you are looking for system documentation scripts, there are plenty of them

1. cfg2html
http://members.tripod.com/rose_swe/cfg/

2. sysinfo
http://www.magnicomp.com/sysinfo

3. nickel
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/inventory/nickel/


-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sridhar Bhaskarla
Honored Contributor

Re: Can we get SAM LVM reports from the command line?

Hi (again) Babak,

You can find an attachment of sysinfo script in the following thread. Curtesy of Deshpande Prashant.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x1a6646ff9277d511abcd0090277a778c,00.html

I am sure you will enjoy it as it gives html output also if you want.

Have fun,
-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Babak
Valued Contributor

Re: Can we get SAM LVM reports from the command line?

Thank you all for your help.

Babak