1830979 Members
2015 Online
110018 Solutions
New Discussion

Re: System information

 
SOLVED
Go to solution
YLTan
Frequent Advisor

System information

Hi

Does anyone what command to use to retrieve information like number of CPU, speed of CPU, type of CPU chips, amount of memory, and etc.. from the system.

regards
tyl
9 REPLIES 9
Niel Greeff_1
Advisor
Solution

Re: System information

The number of CPUs can be found using

ioscan -f | grep proce | wc -l

The speed of the processors

echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem

Well, we all try
T G Manikandan
Honored Contributor

Re: System information

processor-speed
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem

no.of processors
echo runningprocs/D | adb -k /stand/vmunix /dev/mem

amount of memory

echo 'phys_mem_pages/D'|adb -k /stand/vmunix /dev/kmem

or
cat /var/adm/syslog/syslog.log|grep Phy


Also you can use
SAM--->performance monitor---->system prop

to view all the information

Michael Tully
Honored Contributor

Re: System information

Hi,

Have a look at this link, at has an abundance of system gathering information, scripts and links.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x1a6646ff9277d511abcd0090277a778c,00.html

Here are some extra commands to verify system resources:
for HP-UX 10x
example:

echo physmem/D | adb -k /stand/vmunix /dev/kmem
physmem:
physmem: 24576

for HP-UX 11.x systems running on 32 bit architecture:
example:

echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 24576

for HP-UX 11.x systems running on 64 bit architecture:
example:

echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem
phys_mem_pages:
phys_mem_pages: 262144

The results of these commands are in memory pages, multiply by 4096
to obtain the size in bytes.

To determine the amount of lockable memory:
example:

echo total_lockable_mem/D | adb -k /stand/vmunix /dev/mem
total_lockable_mem:
total_lockable_mem: 185280

To determine the number of free swap pages :
example:

echo swapspc_cnt/D | adb -k /stand/vmunix /dev/kmem
swapspc_cnt:
swapspc_cnt: 216447

This will display the number of free swap pages.
Multiply the number returned by 4096 for the number of free swap bytes.

To determine the processor speed:
example:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 360

To determine the number of processors in use:
example:
echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
runningprocs:
runningprocs: 2

To determine the number of pages of buffer cache ( 4Kb in size)
example:
echo bufpages/D | adb -k /stand/vmunix /dev/mem
bufpages:
bufpages: 18848

To display kernel parameters using adb use the parameter name :
example:
echo nproc/D | adb -k /stand/vmunix /dev/mem
nproc:
nproc: 276

To determine the kernel your booted from:
example:
10.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disc(52.6.0;0)/stand/vmunix

11.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/2/0.6.0.0.0.0.0;0)/stand/vmunix
Anyone for a Mutiny ?
Tom Geudens
Honored Contributor

Re: System information

Hi,
Install the Support Tools.
Then you can find all this info by using "cstm".

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
S.K. Chan
Honored Contributor

Re: System information

A lot of ways actually.. I'll just list them down and let you try 'em all..
# /opt/ignite/bin/print_manifest
==> General info about your system.

Try the simplest ones ..
# dmesg

then..

Using cstm ..
# cstm
cstm>map
cstm>sel dev
cstm>info
cstm>infolog

OR

cstm>selall
cstm>info
cstm>infolog

Using adb ..
processor speed
---------------
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
number of processors in use
----------------------------
# echo runningprocs/D | adb -k /stand/vmunix /dev/mem
amount of memory (10.x)
-----------------------
# echo "physmem/D" | adb -k /stand/vmunix /dev/kmem
physmem: 28672
# echo "28672 * 4 / 1024" | bc
112MB
amount of memory (11.x)
-----------------------
# echo "memory_installed_in_machine/D"| adb -k /stand/vmunix /dev/kmem
memory_installed_in_machine: 524288
# echo "524288*4/1024"|bc
2048MB
Raimo Lesonen_1
Advisor

Re: System information

Some of the information you can get using getconf-command.

getconf MACHINE_MODEL
getconf CPU_CHIP_TYPE
getconf CPU_CHIP_TYPE


-Raimo-
John Carr_2
Honored Contributor

Re: System information

Hi

once you have installed the support tools ODE. you can use xstm as well as cstm this will you a windows gui with the same results as cstm.

JOhn.
John Carr_2
Honored Contributor

Re: System information

Hi

also "top" command will quickly give you number of cpu's

John.
John Bolene
Honored Contributor

Re: System information

I posted this to another question.


Very good product to see everything about your systems.

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com