Operating System - HP-UX
1819684 Members
3453 Online
109605 Solutions
New Discussion юеВ

Command to display number of processor/memory slots

 
Natasha L.
Advisor

Command to display number of processor/memory slots

Hi all,

Anyone know a command line method for determining the total number of processor slots (populated or not) on an HP/UX motherboard?

So, if you have a 4-way with only 2 actual CPUs, this command would return 4, not 2.

Along the same lines I'm looking for a command line way to list all of the DIMM slots, whether they are empty or populated, and if populated, the amount of RAM. Something with output like the memconf util for Solaris:

[root@sunbox:/] /opt/RITEutils/memconf-2.0/bin/memconf
U1004 [0x60000000 - 0x7FFFFFFF]: 128 MB
U0904 [0x60000000 - 0x7FFFFFFF]: 128 MB
U0804 [0x60000000 - 0x7FFFFFFF]: 128 MB
U0704 [0x60000000 - 0x7FFFFFFF]: 128 MB
U1003 [0x40000000 - 0x5FFFFFFF]: 128 MB
U0903 [0x40000000 - 0x5FFFFFFF]: 128 MB
U0803 [0x40000000 - 0x5FFFFFFF]: 128 MB
U0703 [0x40000000 - 0x5FFFFFFF]: 128 MB
U1002 [0x20000000 - 0x3FFFFFFF]: 128 MB
U0902 [0x20000000 - 0x3FFFFFFF]: 128 MB
U0802 [0x20000000 - 0x3FFFFFFF]: 128 MB
U0702 [0x20000000 - 0x3FFFFFFF]: 128 MB
U1001 [0x00000000 - 0x1FFFFFFF]: 128 MB
U0901 [0x00000000 - 0x1FFFFFFF]: 128 MB
U0801 [0x00000000 - 0x1FFFFFFF]: 128 MB
U0701 [0x00000000 - 0x1FFFFFFF]: 128 MB


cheers,
Natasha
4 REPLIES 4
Oleg Koroz
Honored Contributor

Re: Command to display number of processor/memory slots

James R. Ferguson
Acclaimed Contributor

Re: Command to display number of processor/memory slots

Hi Natasha:

# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo

# echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpuinfo

Regards!

...JRF...
SUDHEER M S
Advisor

Re: Command to display number of processor/memory slots

You May use any of the following to get these information.

1) parstatus
2) stm (menu Based)
mark Memory/Processor -->Tools-->Run Information..

YOu will get the information about memory and CPU Population.
3) SAM also will help you in this.

May
# ioscan -fnkCprocessor

# echo "sc product cpu;il" | /usr/sbin/cstm | grep 'CPU Module'

Also will help you

Rgds
MS
Natasha L.
Advisor

Re: Command to display number of processor/memory slots

Thanks for the responses!

These commands were good for inventorying the *populated* DIMM / CPU slots. For example, on an rp2430 they returned:

# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo

Memory Board Inventory

DIMM Slot Size (MB)
--------- ---------
01 256
02 256
03 128
--------- ---------
System Total (MB): 640


# echo "sc product cpu;il" | /usr/sbin/cstm | grep 'CPU Module'

PA 8700 CPU Module 2.3


However, what I need to know, is how to inventory the *empty* slots.

So, the above rp2430 had two CPU slots and eight DIMM slots, but only one actual CPU and three DIMMs. I am looking for the commands that return that "two / eight" count, in addition to the commands posted, which return "one / three". For this particular machine, to get the "two / eight" count, I had to look up the product documentation, and since some rp2430s models only have one CPU slot, I ended up having to crack open the lid to verify the two CPU slots.

The underlying use case is a scripted answer to the question, "What parts would we need to buy to max out our HP/UX systems?"

I'm trying to write a script that, each time it is run, can discover this info dynamically.

Thanks,
Natasha