1836433 Members
2554 Online
110100 Solutions
New Discussion

Re: system information

 
golfnut
Frequent Advisor

system information

What is a good way to collect system iformation on a hp-ux server? I am talking about processor info, software, disk, tape drives, nics, other devices? Is there a script available?

thanks
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: system information

One utility is cfg2html

go here to take a look
http://come.to/cfg2html

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Pete Randall
Outstanding Contributor

Re: system information

This sort of question gets asked so often that I finally created a canned answer:

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html", "nickel" and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ )
that can be found by searching the forums.

Finally, you can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM



Pete

Pete
Geoff Wild
Honored Contributor

Re: system information

/opt/ignite/bin/print_manifest

cfg2html:

http://come.to/cfg2html

Sysinfo (see attached)


I run the last 2 from cron like so:

# Run the sysinfo script
0 6 1 * * /usr/local/sysinfo/sysinfo -a -b -o /usr/tmp/`hostname`.sysinfo >/tmp/sysinfo.cron 2>&1
#Run the cfg2html scripts
35 6 1 * * cd /opt/cfg2html ; /opt/cfg2html/cfg2html_hpux.sh >/dev/null 2>&1
#


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: system information

The cfg2htmlk utility and/or the print_manifest output.

The URL for cfg2html...

http://www.cfg2html.com/
golfnut
Frequent Advisor

Re: system information

Thanks for the quick response folks.