- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Processor type in K-class server
Categories
Company
Local Language
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 12:56 AM
05-23-2003 12:56 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 01:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 01:15 AM
05-23-2003 01:15 AM
Re: Processor type in K-class server
You can try this :
REV=`uname -r`
case $REV in
*10*) MODEL_FILE=/usr/lib/sched.models
ADB=adb
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3`
MEM=$(echo 'physmem/D'| adb /stand/vmunix /dev/kmem | grep physmem | tail -1 | awk '{ print $2 }')
;;
*11*)
MODEL_FILE=/usr/sam/lib/mo/sched.models
ADB="adb -k"
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3`
MEM=$(echo 'phys_mem_pages/D'| adb /stand/vmunix /dev/kmem |grep phys_mem_pages | tail -1 | awk '{ pri
nt $2 }')
;;
esac
PROCESSOR=`grep "^$MODEL1" "$MODEL_FILE" | awk ' { print $3 } ' - `
NUMPROC=`/usr/sbin/ioscan -kfnC processor | grep processor|wc -l`
echo "$NUMPROC x \c"
echo "$PROCESSOR\t\c"
echo itick_per_tick/D | $ADB /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/10000 " MHz"}'
Regards,
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 01:19 AM
05-23-2003 01:19 AM
Re: Processor type in K-class server
I cut one of my script.
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 02:25 AM
05-23-2003 02:25 AM
Re: Processor type in K-class server
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2003 02:33 AM
05-23-2003 02:33 AM