Operating System - HP-UX
1753565 Members
6245 Online
108796 Solutions
New Discussion юеВ

Re: Bourne Shell Script to print Critical System Info/ SAM Info

 
SOLVED
Go to solution
Laurie A. Krumrey
Regular Advisor

Bourne Shell Script to print Critical System Info/ SAM Info

Hi All,

After my disk crash with no backup (good
thing it was development and the EMC test
data was recovered due to some old papers I luckily hadn't throw away...that had the lvmtab info, ioscan info and directory/vol group and logical volume names... I was able from that to recover the EMC data.

My goal now is to install a script that runs
weekly on cron that sents all this info to
an output file. I manager over 13 HP-UX 11.0
so my memory is not good here.

I want the following commands output (and
I wasn't sure how to output SAM) from
a script:

1. bdf
2. cat /etc/lvmtab
3. cat /etc/fstab
4. ioscan
5. a listing of all volume groups with
their logical volumes and physical disk
and mount points...
6. Any SWAP/ Boot Disk Info/ Disk Mirroring
7. Kernel Configurable Parameters
8. Any important SAM stuff, I missed here ???
9. A listing of all the software I need to
reinstall (swlist -l bundle output)

=============================
I am assuming I'm not the only person out their
with this desire for a script...I want a nice
audit trail..a paper trail in case I have to
re-build from scratch (like I did today and
some of that was quess work without all the
paper).

Are there any folks out there that have a script similiar to this?

Have A Great Weekend...
Laurie
Happiness is a choice
3 REPLIES 3
Alan Riggs
Honored Contributor
Solution

Re: Bourne Shell Script to print Critical System Info/ SAM Info

Laurie,
there are a number of scripts that gather system information for documentation purposes. The print_manifest command (part of Ignite) does a nice job. If you want something more customizeable, there are a few out there. I personally took one from Ralph Roth and modified it to the specific needs of my environment. You might want to track down his version, since he has likely made improvements since I, um, appropriated it.

My modified version is:
A. Clay Stephenson
Acclaimed Contributor

Re: Bourne Shell Script to print Critical System Info/ SAM Info

Hi Laurie,

There are several scripts that do a very good job. One is called 'nickel'. If you search for it, you will find it with no trouble. Another is LVMcollect (an unsupported HP utility) that
I've attached.

Clay
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Bourne Shell Script to print Critical System Info/ SAM Info

Hi Laurie:

I too have similar scripts as Alan & Clay have offered. You can certainly add anything else to them that helps you.

The most recent versions of Ignite automatically produce a 'manifest' document whenever you do a 'make_tape_recovery'. That is, there is no need to independently execute a 'print_manifest'. You will find the current manifest(after every 'make_tape_recovery') is:

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

You can add ('cat') this file to the output of other collection scripts or use it as a standalone reference.

Another useful feature of the manifest is that it will include a file called:

/var/opt/ignite/local/manifest/manifest.seed.

You can create or modify this optional file. Put records into it that look like this:

DOM "March 17, 2001, 02:25:47 EST"
IGNITE_REVISION B.2.2.161
SERIAL "1234A56789"

The SERIAL in this case is the hardware serial number -- the first thing the response center asks for when you place a hardware support call.

This information will be included into each manifest file generated and add to its usefulness.

Regards!

...JRF...