The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-12-2007
411seeker's Avatar
411seeker 411seeker is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 18
ioscan -k -is the typical place to start, this provides list of all hardware
dmesg -is the easiest way to get physical memory

SAM is also a great way to get the overview.

Some typical programatic specifics are below.
PROC_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'`
NU_PROC=`echo "runningprocs/D" | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'`
MODEL=`model|awk -F/ '{print $3}'`
MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print$2}'`