Operating System - HP-UX
1822919 Members
4223 Online
109645 Solutions
New Discussion юеВ

How to get Hardware configuration info - HP-UX 10.20

 
SOLVED
Go to solution
Francisco Mancardi_1
Frequent Advisor

How to get Hardware configuration info - HP-UX 10.20

I need collect the following info:
processor type, speed, etc
qty of processor
memory size
etc

There are system commands that allow me to do this ?

Thanks

9 REPLIES 9
Timothy Czarnik
Esteemed Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

Francisco,

If you have the Ignite/UX product installed (free from www.software.hp.com/products/IUX) you can use the /opt/ignite/bin/print_manifest command to generate a pretty decent hardware and software layout of your system.

-Tim
Hey! Who turned out the lights!
Sachin Soni_1
Frequent Advisor

Re: How to get Hardware configuration info - HP-UX 10.20

Hi Francisco,

Go to SAM , goto performance monitor , goto system properties.
you will get information about no of cpu,memory , swap , speed and all.
you can also use foll commands:
dmesg for memory,
model for knowing system model,
swapinfo for swap.

i dont think there is any command for CPU .

Sachin S.
N-joy
Victor_5
Trusted Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

One way:
SAM-->Performance Monitors -->System Properties

Another way:
#top
you can see processor and memory info on the top of the output. You also can use command dmesg to see memory info.


Joseph C. Denman
Honored Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

If you are using graphics console or emulator, you can use

/usr/sbin/xstm

...jcd...

If I had only read the instructions first??
Sanjay_6
Honored Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

Hi Francisco,

If you STM installed on your system, you can get all this info very easily. STM is part of the Diag-tools on the support plus CD.

the three commands of STM are
xstm -> Graphical mode of STM
mstm -> character menu mode of STM
cstm -> Command line mode of STM

This will get you all the info you are looking for.

Have a look at one of the other questions posted by another forum meber.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x3f79abe92dabd5118ff10090279cd0f9,00.html

hope this helps.

thanks
Santosh Nair_1
Honored Contributor
Solution

Re: How to get Hardware configuration info - HP-UX 10.20

Francisco,

Here is a short script that gets the number, type and speed of processors on a given machine:

-Santosh

#!/bin/sh

REV=`uname -r`
case $REV in
*09*)
MODEL_FILE=/usr/lib/sched.models
ADB=adb
MODEL=`uname -m | cut -d / -f2` ;;
*10*)

MODEL_FILE=/usr/lib/sched.models
ADB=adb
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3` ;;
*11*)
MODEL_FILE=/usr/sam/lib/mo/sched.models
ADB="adb -k"
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3` ;;

esac

PROCESSOR=`grep "^$MODEL1" "$MODEL_FILE" | awk ' { print $3 } ' - `
NUMPROC=`ioscan -kfnC processor | grep processor|wc -l`
echo "$NUMPROC x \c"
echo "$PROCESSOR\t\c"
echo itick_per_tick/D | $ADB /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/10000 " MHz"}'


Life is what's happening while you're busy making other plans
linuxfan
Honored Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

Hi Francisco,

Not sure if this is an overkill, but there are other tools/scripts which give lots of other information.

Nickel is an unsupported script from HP, but works like a charm
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/inventory/nickel/

Cfg2html is pretty nice too
http://come.to/cfg2html

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Bernie Vande Griend
Respected Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

sysinfo is another nice tool that HP actually supports/maintains now. We use both nickel and sysinfo to gather system configuration information as both have options to output in html. We place them on a web server and have helped in many many situations.
Ye who thinks he has a lot to say, probably shouldn't.
James R. Ferguson
Acclaimed Contributor

Re: How to get Hardware configuration info - HP-UX 10.20

Hi:

Whenever you create an Ignite recovery tape of your system for "disaster" recovery purposes, using the 'make_tape_recovery' utility provided with newer Ignite versions, you will *gratuitously* receive a system configurtion summary.

You *automatically* get a nicely formatted, summary of hardware, installed software, file system layout, swap information, kernel configuration and essential network parameters *without doing anything* other than creating the recovery tape! There is no need to run a 'print_manifest'. Rather, one is automatically created each time as:

/var/opt/ignite/recover/latest/manifest

Regards!

...JRF...