Operating System - HP-UX
1753774 Members
7269 Online
108799 Solutions
New Discussion юеВ

Re: hwconfig command line for hpux 11i

 
SOLVED
Go to solution
Chui Kock You_1
Frequent Advisor

hwconfig command line for hpux 11i

Hi,

There is a command something like hwconfig to find out the server hardware configuration such as hard disk, memory, etc.

What is the correct command line for hpux 11i?

Regards
Chui
3 REPLIES 3
Grayh
Trusted Contributor
Solution

Re: hwconfig command line for hpux 11i

for memory

#echo "selclass qualifier memory;info;wait;infolog"|cstm


for CPU info

cstm>SelClass type "Processor" qualifier "CPU" hwpath ""
cstm>Information ; wait
-- Updating Map --
Updating Map...
cstm>InfoLog


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" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

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}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| 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


Support Tools Manager (STM) CPU info:

echo "selclass qualifier cpu;info;wait;infolog" | cstm




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


Support Tools Manager (STM) RAM info:

echo "selclass qualifier memory;info;wait;infolog" | cstm




You can obtain CPU speed and RAM without CSTM or root access as described by Tom Ferony (under Nancy Rippey's log
in) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


And then if u wanted to refer a link for the same .... follow the below link which would give u exactly the same info which I have done a copy & a paste


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1238211
Bill Hassell
Honored Contributor

Re: hwconfig command line for hpux 11i

The first command is ioscan. Use -k to look at the current I/O list (and to run at full speed), leave off -k to ask every driver to search for hardware changes:

ioscan -knf

The -k option allows anyone to run ioscan. Without -k, only root can run the command. Here is a (very detailed) list of the hardware including CPU, disk, tape, RAM, network cards.

echo "selclass qualifier all;info;wait;infolog" | cstm

A simpler list is found with the command:

print_manifest

If you do not have print_manifest, then use the full path:

/opt/ignite/bin/print_manifest

If you do not have /opt/ignite/bin, your system is a great risk if there is a boot disk failure. Be sure to download it and learn about how to use it.

And finally, you can use sam. Just select Performance Monitors -> System Properties.


Bill Hassell, sysadmin
Asif Sharif
Honored Contributor

Re: hwconfig command line for hpux 11i

HI Chui,

There are several tools available in HP-UX.

e.g.

-->Nickel report---

Its very good script for system information. You can try the HP Nickel script ,it generates the report in HTML format ,download it from the below site

http://hpux.connect.org.uk/

-->sysinfo

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sysinfo-3.3.1/


--> "print_manifest" command

--> cfg2html from: http://come.to/cfg2html

Regards,
Asif Sharif
Regards,
Asif Sharif