[HPADM] Re: In: Find CPU info
From: James Mcdonald (jmcdon23_at_csc.com.au)
Date: 11/30/04
- Previous message: Vance_Brasher_at_dril-quip.com: "[HPADM] RE: Re: not able to login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Francesco.Borgoglio@cedacri.it Date: Wed, 1 Dec 2004 06:27:27 +1000
Hi
This covers most of the CPU info.
The STM part will dump all your hardware info
#!/bin/ksh
# Get the Kernal value
GetKernelVal(){
echo "$1/D" | adb -k $HPUX /dev/kmem | tr "\012" " " | read dummy1 dummy2
KERNEL_VAL
}
# -------------------------------------------
CPUs(){
# Get the CPU and some kernel info
HPUX=/hp_ux
REV=$(uname -r | cut -d. -f2 )
if (( REV > 9 )); then
HPUX=/stand/vmunix
fi
GetKernelVal "processor_count"
print "CPU Number :" $KERNEL_VAL
GetKernelVal "itick_per_tick"
let SPEED=$KERNEL_VAL/10000
print "CPU Speed :" $KERNEL_VAL MHz
if (( REV > 10 )) ; then
print "CPU HW Support :" $(getconf HW_CPU_SUPP_BITS) - bit
print "Kernel Support :" $(getconf KERNEL_BITS) - bit
GetKernelVal "memory_installed_in_machine"
else
GetKernelVal "physmem"
fi
let MEM_MB=$KERNEL_VAL*4/1024 #convert pages to MB
print "RAM Size :" $MEM_MB MB
}
# --End CPU function -----------------
Hardware(){
# this all the hardware as seen by STM
echo "System hardware and status according to STM \n"
echo "selall\ninfolog\nexit"|cstm 2>&1
echo "\n\n"
}
# --End Hardware function -----------------
# -- Main ----
CPUs
Hardware
## END ##
Regards
Jim McDonald
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use of
e-mail for such purpose.
----------------------------------------------------------------------------------------
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
- Previous message: Vance_Brasher_at_dril-quip.com: "[HPADM] RE: Re: not able to login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|