RAM size

hi,

while i am working in hpux 11.23 using a telnet connection how do i check the RAM size and hard disk size?

'df' or 'df -h' should give you information about mounted disks' capacities. I know that in linux, 'free' will give similar info about ram, so it's worth a try in HP/UX. 'top' should also give RAM info.

HP-UX 11.23 has a new command called /usr/contrib/bin/machinfo. This will give you CPU, MEMORY and serial info.

For disk info, use ioscan -fnkC disk command then diskinfo command will give you info about each disk.

hey Sekar;

MEMORY:
#top - virtual + real
if diagnostics installed
#cstm
cstm>map // lists the i/o's
cstm>sel dev X //memory device number (number on far left)
cstm>map // should see and * next to it
cstm>info
cstm>il // information logs on the memory

DISK:
ioscan -fnC disk - check the special device cXtYdZ
run diskinfo -v /dev/rdsk/cXtYdZ

hope that helps!
Salam

This script uses adb and wont work correctly on Vpars, but in all other cases will work perfectly..

./hpmem

----------------------------cut here---------------------------------
# cat hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval
4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval

----------------------------cut here---------------------------------