1753425 Members
4973 Online
108793 Solutions
New Discussion юеВ

How to find system info

 
SOLVED
Go to solution
Vinod Subramanian
Occasional Contributor

How to find system info

Could you tell me the command to find information about a systems OS-version, patchlevel, hardware (Number of cpu's, speed, any specification for the CPU, memory size)
Does a single command provide all the information or multiple commands.
11 REPLIES 11
David_246
Trusted Contributor

Re: How to find system info

Hhhm,

If you use CDE export your display and use "xstm"
It will give you all.

Regs David
@yourservice
Ross Zubritski
Trusted Contributor
Solution

Re: How to find system info

 
Martin Johnson
Honored Contributor

Re: How to find system info

You can get some of the information from glance, if you have it. Patches can be listed with "swlist -product".

HTH
Marty
Pete Randall
Outstanding Contributor

Re: How to find system info

If you have Ignite installed, the print_manifest command can provide much of this info in one source. Otherwise, you can patch together several commands in a script to give you what you want.

OS-version - uname -r
patchlevel - swlist
Number of cpu's - ioscan -k |grep -n processor |wc -l
speed -
HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ

memory size -
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



All those commands combined in a script can tell you everything you need to know.


Pete

Pete
James Murtagh
Honored Contributor

Re: How to find system info

Hi Vinod,

OS Version:

# uname -r

Patch level:

# swlist -l product
# swlist -l bundle

(see man swlist for a full description)

Hardware:

# ioscan -fn
# ioscan -fnCprocessor|grep -c proc (number of CPUs)

Memory:

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

This is the number of 4096 byte pages

Processor speed:

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

These commands all assume you are on release >= 11.00.

Regards,

James.
Pete Randall
Outstanding Contributor

Re: How to find system info

That last didn't read very well - let's try this:

If you have Ignite installed, the print_manifest command can provide much of this info in one source. Otherwise, you can patch together several commands in a script to give you what you want.

++++++++++++++++++++++++++++++
OS-version - uname -r
++++++++++++++++++++++++++++++
patchlevel - swlist
++++++++++++++++++++++++++++++
Number of cpu's - ioscan -k |grep -n processor |wc -l
++++++++++++++++++++++++++++++
speed -
HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ
++++++++++++++++++++++++++++++
memory size -
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
++++++++++++++++++++++++++++++


All those commands combined in a script can tell you everything you need to know.


Pete

Pete
Stan_17
Valued Contributor

Re: How to find system info

Hi vinod,

system OS-version : uname -a

patchlevel : swlist (should give you a list of patch bundles been applied)

memory size : dmesg (should tell you the physical ram size in the system)

i'm sure others would pitch in with their suggestions.

hth,
Stan

Paul Sperry
Honored Contributor

Re: How to find system info

SAM
Preformance Monitors
System Properties

And

The swlist command
man swlist
James R. Ferguson
Acclaimed Contributor

Re: How to find system info

Hi:

Do this for your protection: make routine Ignite recovery tapes:

# /opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

*Now*, having done that, for *free* you have a manifest with much of the information you are seeking in:

# /var/opt/ignite/recovery/latest/manifest

Regards!

...JRF...