- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to determine number and size of CPU's
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:07 AM
тАО07-19-2002 07:07 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:12 AM
тАО07-19-2002 07:12 AM
Solution##Number of processors
sar -Mu 1 1|awk 'END {print NR-5}'
ioscan -kfnC processor
###To obtain the processor speed (MHz):
echo itick_per_usec/D|adb -k stand/vmunix /dev/kmem|awk 'NR==2 {print}'
or
echo itick_per_usec/D | /usr/bin/adb -k /stand/vmunix /dev/kmem
##total of memory
#!/bin/ksh
if [ `uname -r` = "B.11.00" ]
then
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print $2/256 " MB"}'
else
echo "physmem/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print "Memory size = " $2 / 256 " Megabytes"}'
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:12 AM
тАО07-19-2002 07:12 AM
Re: Script to determine number and size of CPU's
for number..
model is a good start to guess cpu speed without stm..
alternatively try /opt/ignite/bin/print_manifest
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:12 AM
тАО07-19-2002 07:12 AM
Re: Script to determine number and size of CPU's
maybe you could try the following
echo runningprocs/D | adb -k /stand/vmunix /dev/mem
regards
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:16 AM
тАО07-19-2002 07:16 AM
Re: Script to determine number and size of CPU's
if u have ignite installed
to get the no. of cpus
issue
/opt/ignite/bin/print_manifest |grep Processors
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:26 AM
тАО07-19-2002 07:26 AM
Re: Script to determine number and size of CPU's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:43 AM
тАО07-19-2002 07:43 AM
Re: Script to determine number and size of CPU's
dmesg | grep Proc | wc -l
sam---> performance moniotor-->System properties
print _manifest
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:56 AM
тАО07-19-2002 07:56 AM
Re: Script to determine number and size of CPU's
echo `hostname` "is a " `model |sed 's/9000\/800\///' |sed 's/9000\/899\///'` "w
ith" `ioscan -k |grep -n processor |wc -l` `/nfs/yukon/apps/hols/bin/ts/cpuspeed
` "Mhz processors and" `/nfs/yukon/apps/hols/bin/ts/memory` "KB of memory"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 08:07 AM
тАО07-19-2002 08:07 AM
Re: Script to determine number and size of CPU's
echo `hostname` "is a " `model |sed 's/9000\/800\///' |sed 's/9000\/899\///'` "with" `ioscan -k |grep -n processor |wc -l` `cpuspeed`
` "Mhz processors and" `memory` "KB of memory"
cpuspeed:
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ
memory:
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 '{print $2*4/1024}')
echo $MYMEM
At least I hope this is going to be more readable.
Pete
Pete