- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find mem size and cpu details using com...
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
тАО01-10-2002 03:20 AM
тАО01-10-2002 03:20 AM
How to find mem size and cpu details using command line
i want to find the physical Ram size ,CPU Details using command line.Can anybody help.
thnks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 03:30 AM
тАО01-10-2002 03:30 AM
Re: How to find mem size and cpu details using command line
memory:
grep Physical /var/adm/syslog/syslog.log
cpu speed in Mhz:
HZ=`echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2`
((MHZ=$HZ/10000))
echo $MHZ
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 03:43 AM
тАО01-10-2002 03:43 AM
Re: How to find mem size and cpu details using command line
If your syslog doesn't show it, try:
dmesg | grep Physical
or else use cstm.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 03:45 AM
тАО01-10-2002 03:45 AM
Re: How to find mem size and cpu details using command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 03:49 AM
тАО01-10-2002 03:49 AM
Re: How to find mem size and cpu details using command line
1. memory.sh
#!/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
2. cpuspeed.sh
let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix /dev/kmem|grep itick|tail -1|awk '{print $2}'`
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix doesnt match running kernel, trying /stand/vmunix.prev"
let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix.prev /dev/kmem|grep itick|tail -1|awk '{print $2}'`
let SPEED=$SPEED/10000
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix.prev doesnt match running kernel either, exiting"
exit 1
fi
else
let SPEED=$SPEED/10000
fi
echo "CPU Speed = $SPEED Mhz"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 03:58 AM
тАО01-10-2002 03:58 AM
Re: How to find mem size and cpu details using command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 04:20 AM
тАО01-10-2002 04:20 AM
Re: How to find mem size and cpu details using command line
http://come.to/cfg2html
the script on this site will generate a report of your server in text and html format; and it will probably contain more info than you ever want to see ;)
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 05:47 AM
тАО01-10-2002 05:47 AM
Re: How to find mem size and cpu details using command line
To use cstm to determine the memory installed:
create a file containing:
scl type memory
il
done
quit
ok
then run:
cstm -f your-filename | grep "Total Physical"
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2002 06:09 AM
тАО01-10-2002 06:09 AM
Re: How to find mem size and cpu details using command line
Try this link,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=1e187d7e1bfbbc92d9/screen=ckiDisplayDocument?docId=200000057790826
Hope this helps.
Regds