Operating System - HP-UX
1829347 Members
5075 Online
109991 Solutions
New Discussion

command to check memory and slot designation in unix

 
SOLVED
Go to solution
kevin poole_1
Frequent Advisor

command to check memory and slot designation in unix

is there a command to check memory and what slot it is i for unix without having to open the box? thank you in advance.
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: command to check memory and slot designation in unix

Try this:

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

You can redirect that to a file if you like. The output will show memory information including all slots and the size DIMMs in the slots.
spex
Honored Contributor

Re: command to check memory and slot designation in unix

Hi Kevin,

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

PCS
Pete Randall
Outstanding Contributor

Re: command to check memory and slot designation in unix

Kevin,

I suspect that you'll need to get into STM (cstm, xstm) to see slot info, but you can simply get the quantity of memory with this little script:

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


Pete

Pete