- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help on getting CPU Speed and RAM on a B11.23 ...
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
Forums
Discussions
Discussions
Discussions
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
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
01-09-2006 10:19 PM
01-09-2006 10:19 PM
Someone helped before by telling me I can get CPU Speed and RAM with the following script:
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 '{printf "%.0f MB\n",$2/256}')
echo RAM: $MYMEM
MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo CPU Speed: $MHZ MHz
However, when I run this script on a B11.23, here's my output:
adb: warning: Unrecognized format character - 'D'.
RAM: 0 MB
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'D'.
CPU Speed: 0 MHz
Does anyone know what I can do to get these information correctly on a script, not by using SAM or print_manifest? Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:23 PM
01-09-2006 10:23 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:25 PM
01-09-2006 10:25 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
The script you are using is for HPUx 11 perhaps. Do this to find out
$file script_name
In Itanium use machinfo to find the detailed information easily.
Also for Physical memory you can use
#dmesg |grep -i physical
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:26 PM
01-09-2006 10:26 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988157
You can use sysinfo script to get all informations simply.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:27 PM
01-09-2006 10:27 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
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 '{printf "%.0f MB\n",$2/256}')
echo RAM: $MYMEM
MHZ=$(echo itick_per_tick/d \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo CPU Speed: $MHZ MHz
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:38 PM
01-09-2006 10:38 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
You can use cfg2html to find out.
http://come.to/cfg2html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:40 PM
01-09-2006 10:40 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=700995
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=706790
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 10:40 PM
01-09-2006 10:40 PM
Re: Help on getting CPU Speed and RAM on a B11.23 HP-UX
You can use sysinfo as well,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sysinfo-3.3.1/
-Arun