- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/sam/lbin/getmem
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
тАО02-12-2003 05:13 AM
тАО02-12-2003 05:13 AM
Hi
I have many boxes with 11.0 and 11.11. I am trying /usr/sam/lbin/getmem command to get the physical memory. For non root users it gives nothing and for root users it gives wrong answer. I observed that this command is giving right answer in a B class workstation where memory is less than 512 MB. Anyone knows about this command? Why getmem misleading me? Is it a known issue?
TIA
Shahul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 05:19 AM
тАО02-12-2003 05:19 AM
Re: /usr/sam/lbin/getmem
getmem doesn't report more the 512mb RAM
dmesg | grep P
or consider using glance ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 05:19 AM
тАО02-12-2003 05:19 AM
SolutionGo here and I think you'll find the answer to what you're looking for
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063198307
it is an obsolete command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 05:20 AM
тАО02-12-2003 05:20 AM
Re: /usr/sam/lbin/getmem
I use the following script for memory reporting:
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 $MYMEM
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 02:42 PM
тАО02-13-2003 02:42 PM
Re: /usr/sam/lbin/getmem
Pete your suggestion needs to read KMEM which is something users cannot do. it puts the problem back to
glance -m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:14 PM
тАО02-13-2003 05:14 PM
Re: /usr/sam/lbin/getmem
You can use this:
#/usr/sbin/dmesg |grep -i Physical
look for the output line beginning:
Physical: xxx Kbytes
Divide it by 1024 to the value in MBs.
Thanks.