Operating System - HP-UX
1846957 Members
4038 Online
110257 Solutions
New Discussion

Re: Any Scripts for documenting a System?

 
SOLVED
Go to solution
Shaun Aldrich
Frequent Advisor

Any Scripts for documenting a System?

Hello Everyone,

Just wanted to find out if there are any scripts that anyone has done which will run and document a system.

I am looking for a script which will give all important information about a system such as Hostname, IP, Diskinfo, Memory information ( as well as existing Memory ), CPU information, and any other type of information that would be important to a System Administrator.

I appreciate any responses. Thanks for your help..

Shaun Aldrich
SAldrich@chaptersinc.com
24 REPLIES 24
Antoanetta Naghiu
Esteemed Contributor

Re: Any Scripts for documenting a System?

See print_manifest from Ignite.
Also, do a search in forum, on Friday, I guess it was a toic about.
Rita C Workman
Honored Contributor

Re: Any Scripts for documenting a System?

Yeah, print_manifest is a nice utility to get all your hardware/software/IP/LAN information.
The question has been how to get the serial number of the box...and as far as I can tell...it's still a manual function.

Regards,
Steve Sauve
Frequent Advisor

Re: Any Scripts for documenting a System?

Here's one I wrote recently. Covers most of what you were looking for. Also it has logic in it to archive old system data (I run this out of cron monthly). That way you don't have to remember to run it again after a system change.

svpath=/home/sysdocs # path to save files in
name=`hostname`
date=`date +%m%d%y`

if /bin/test -d $svpath
then
if /bin/test -f $svpath/$name.*
then
if /bin/test -f $svpath/*.old
then
rm $svpath/*.old
fi
if /bin/test -f $svpath/*.tar
then
cp $svpath/*.tar $svpath/olderconfig.old
fi
tar cvf $svpath/$date.$name.sysinfo.tar $svpath/$name.*
fi
else
mkdir $svpath
chmod 755 $svpath

fi
cd $svpath

ioscan -fun > $name.ioscan.$date
uname -a > $name.uname.$date
swlist > $name.swlist.$date
cat /etc/hosts > $name.hosts.$date
cat /etc/resolv.conf > $name.resolv.$date
cat /etc/rc.config.d/netconf > $name.netconf.$date
cat /etc/passwd > $name.users.$date
cat /etc/fstab > $name.fstab.$date

Hope this helps,
Steve
Shaun Aldrich
Frequent Advisor

Re: Any Scripts for documenting a System?

Hello,

What exactly do you mean by print_manifest from Ignite? How can I find this? Does this require Ignite to be installed?

Thanks for your help.

S Aldrich
James R. Ferguson
Acclaimed Contributor
Rita C Workman
Honored Contributor

Re: Any Scripts for documenting a System?

Yes it does. Ignite is software on your application CD. You can install it easily and NO it does not require a reboot. So you can load it anytime. It is very useful utility. With it you have the ability to create 'make_recovery' tapes. Which is the bottom line of protection for your system should anything go wrong. You can reboot your system from this tape, should your drives ever be unbootable.
So if you don't have Ignite-UX loaded on your box...do it asap. Then run (with the options of your choice) make_recovery to a tape.. and you will also have some other tools like 'print_manifest' that's been mentioned to get a full consensus of what's on your system in one file (except the serial number of course...)
Regards,
....and don't forget to assign points...Tx
Shaun Aldrich
Frequent Advisor

Re: Any Scripts for documenting a System?

Thanks for your replies everyone...

Shaun Aldrich
Anonymous
Not applicable
Solution

Re: Any Scripts for documenting a System?

Victor BERRIDGE
Honored Contributor

Re: Any Scripts for documenting a System?

Hi Shaun,
You should also look at Thomas's links, I use also cfg2html for some machines (for now), it generates in html format, so I use it to put on a web server I access from anywhere in the intranet...The author is a german HP guy
Very good I tell you
PAUL  BAKER
Occasional Contributor

Re: Any Scripts for documenting a System?

I use a nice little script called SysInfo which can output your configuration in an HTML document. It's only about 300K. Mail me if you would like a copy.
If at first you don't succeed, give up
Chris Amick_1
Occasional Advisor

Re: Any Scripts for documenting a System?

Shaun,

Why not take the time and write them yourself?

Here are a few commands that may be of help, just redirect their output to a file for the first command, then append the rest to the same file.

bdf - snapshot of disk usage and mount points
vmstat - status of virtual memory
ioscan - scan of the I/O bus.
lanscan - scans the network cards as well as their configurations
ifconfig - more infor about the lancards.
ls -lai * - run from the root directory gives the file structure.

You may want to get a shell programming/scripting book.

HP has a shell book in their instant information CD-ROM, but Hayden puts a good shell book out as well: "UNIX Shell Programming" ISBN: 0-672-48448-X

If you need any help with your script, e-mail me. clamick@hotmail.

I'll help, but I won't write the script for you. You NEED to have this skill set in your pocket.

Chris
Vince Arends
Frequent Advisor

Re: Any Scripts for documenting a System?

When I run print_manifest on my HP-UX 11.0 system, the Serial Number prints under the Customer Information. I was not involved with the installation (third party consultant did it), so, is this something that the consultant put in when the box was set up or maybe when Ignite was installed? If not, any ideas as to why I get the serial number from my print_manifest?
Shaun Aldrich
Frequent Advisor

Re: Any Scripts for documenting a System?

Hi Paul,

I am very interested in the script called SysInfo that you replied to me about. I don't have your email address but you can email me at the below address. Thanks.

Shaun Aldrich
SAldrich@chaptersinc.com
Alan Riggs
Honored Contributor

Re: Any Scripts for documenting a System?

I would be interested in seeing the script also. I can be reached at:

riggsa@sensormatic.com
Victor BERRIDGE
Honored Contributor

Re: Any Scripts for documenting a System?

And me!!! victor.berridge@etat.ge.ch (...)

Thanks
Robert Gamble
Respected Contributor

Re: Any Scripts for documenting a System?

Here is version 1.75 of Scott Truesdale's sysinfo script.
Rita C Workman
Honored Contributor

Re: Any Scripts for documenting a System?

I'd like to see that script SysInfo too.....could you send it to me or tell me where to get it.
My email is:
rworkman@wvbep.org

Thanks,
Jennifer Chiarelli
Regular Advisor

Re: Any Scripts for documenting a System?

I would also like to see the Sysinfo script if someone would forward it. Anyone know if there is a script called LVMcollect.11 or capture.11? I can be reached at
lanny.kimsey@marconi.com
Thanks!
It's a binary world!
Fred Myers
Advisor

Re: Any Scripts for documenting a System?

I am intereseted in the SysInfo script mentioned by Paul anybody that has a copy could you please mail it to Fred.myers@attws.com.

Thanks.
Richard Darling
Trusted Contributor

Re: Any Scripts for documenting a System?

here is a script that I use - it collects just about everything you need...
Richard Darling
Bill Hassell
Honored Contributor

Re: Any Scripts for documenting a System?

Here is a link to several data collection scripts including one (nickel) that automatically creates a web page of information:

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

Note: ftp:// not http://


Bill Hassell, sysadmin
Ralph Roth
Occasional Contributor

Re: Any Scripts for documenting a System?

Here?s the latest cfg2html script, I hope it?s useful for system documentations
Vorne ist dort, wo sich keiner mehr auskennt.

Re: Any Scripts for documenting a System?

HP UK field engineers also seem to use a tool called AEPcollect - which produces pretty much all the info suggested by other threads, plus software/patch info ... and the machine id number.
I'm not aware that it's copyrighted (HP please correct me/shoot me down in flames if wrong!), so if you would like a copy to try - e-mail me at paul.mann@alphameric.com and I'll send by return.
Paul Mann.

Re: Any Scripts for documenting a System?

Ohh - go on - send me to Belgium - forgot I could attach the file ... here it is!