- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Get installed memory-size from HP-UX
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
09-26-2005 02:39 AM
09-26-2005 02:39 AM
I'm new to HP-UX and I'd like to know how may I retrieve the actual memory-size from HP-UX.
About 4 weeks ago, somebody told me to use /usr/sam/lbin/getmem, but when I've got a machine with more than 1 GB RAM, I get the value 72MB which is for sure wrong.
I talked to some guys and they told me to ask the kernel directly, but I have no idea how.
I have HP-UX V11.xx systems.
swapinfo shows me available memory, but not how many is installed.
Is there somebody who can help me?
Best Regards
Max
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:43 AM
09-26-2005 02:43 AM
Re: Get installed memory-size from HP-UX
This will show you the physical memory installed and the layout of the same:
# echo "selclass qualifier memory;info;wait;infolog" | cstm > /tmp/meminfo
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:43 AM
09-26-2005 02:43 AM
Re: Get installed memory-size from HP-UX
enter dmesg and look/grep for Physical memory
or, if You have the Support Tools installed using:
echo "selclass qualifier memory;info;wait;infolog"|cstm | grep "Total Configured Memory"
The second one works better in my opinion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:44 AM
09-26-2005 02:44 AM
Re: Get installed memory-size from HP-UX
cat /var/adm/syslog/syslog.log|grep Physical
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:45 AM
09-26-2005 02:45 AM
Re: Get installed memory-size from HP-UX
To see the number of DIMMs installed (this assumes you have diagnostics installed):
# echo "selclass qualifier memory; info ; wait ; infolog" | cstm
If you want to see total physical memory:
# grep physical /var/adm/syslog/syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:47 AM
09-26-2005 02:47 AM
Re: Get installed memory-size from HP-UX
# grep -i physical /var/adm/syslog/syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:48 AM
09-26-2005 02:48 AM
Re: Get installed memory-size from HP-UX
Glance will show you (press 'm' for memory information).
and this c code will tell you (original author not known):
#define _PSTAT64
#include
#include
#include
int main(int argc, char *argv[])
{
struct pst_static pst;
if (pstat_getstatic(&pst, sizeof(pst), (size_t)1, 0) == -1) {
perror("pstat_getstatic");
return 1;
}
printf("physical memory size %llu bytes\n",
(unsigned long long) pst.physical_memory * pst.page_size);
return 0;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:49 AM
09-26-2005 02:49 AM
Re: Get installed memory-size from HP-UX
for 11.11 and 11.0 it's:
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{printf "%.0f Mb\n",$2/256}'
You can also see it when the machine boots up - it's displayed during the boot process.
Also you can see the single RAM DIMM's when you interrupt boot process and let display the memory.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:50 AM
09-26-2005 02:50 AM
Re: Get installed memory-size from HP-UX
thanks for your high-speed posting.
All the stuff you've posted doesn't work ;(
I don't get any result. Asking dmesg or syslog doesn't work, because they're flooded with errors of some software and the machine had it's last reboot some month ago ;(
I asked someone from openview and he told me, that it's possible to ask the kernel itsself, and he told me how, but I can't remember. And he's currently on vacation.
Bye
Max
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:51 AM
09-26-2005 02:51 AM
SolutionGetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:52 AM
09-26-2005 02:52 AM
Re: Get installed memory-size from HP-UX
It works, and that was exactly the command he gave to me.
Lots of thanks guys for your help.
Best Regards
Max
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:32 AM
09-26-2005 03:32 AM
Re: Get installed memory-size from HP-UX
Output like:
# memdetail
Memory Stat total used avail %used
physical 4088.0 2468.4 1619.6 60%
active virtual 5475.0 724.3 4750.7 13%
active real 1450.5 280.2 1170.3 19%
device swap 20480.0 5230.0 15250.0 26%
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 04:04 AM
09-26-2005 04:04 AM
Re: Get installed memory-size from HP-UX
Florian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:53 AM
09-26-2005 09:53 AM
Re: Get installed memory-size from HP-UX
use
dmseg | grep memory
idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 10:04 AM
09-26-2005 10:04 AM
Re: Get installed memory-size from HP-UX
Every response to your question is eligible to earn between 1-10 points. No need to worry about running out of points - when a truly awesome reply rolls in that deserves a 10, you will be able to assign it a 10! However, be careful to assign points based on the value that a reply truly provides. Use the following scale as a guideline:
o N/A: The answer was simply a point of clarification to my original question
o 1-3: The answer didn't really help answer my question, but thanks for your assistance!
o 4- 7: The answer helped with a portion of my question, but I still need some additional help!
o 8-10: The answer has solved my problem completely! Now I'm a happy camper!
Although assigning points is not mandatory, it is a key component of a strong, interactive community, and it is STRONGLY ENCOURAGED. Others have taken time to help you, so please take a moment to give them credit for their assistance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 02:22 PM
09-26-2005 02:22 PM
Re: Get installed memory-size from HP-UX
grep Physical /var/adm/syslog/syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:31 PM
09-26-2005 03:31 PM
Re: Get installed memory-size from HP-UX
echo "sc qualifier memory;info;wait;infolog" | cstm
Regard,
Hoang Chi Cong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 11:57 PM
09-26-2005 11:57 PM
Re: Get installed memory-size from HP-UX
Use following command to get physical memory available in hp-ux server:
#dmesg |grep "Physical"
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 12:24 AM
09-27-2005 12:24 AM
Re: Get installed memory-size from HP-UX
dmesg or syslog doesn't work for Max!
@Max - maybe you should close the thread now ...
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 12:47 AM
09-27-2005 12:47 AM
Re: Get installed memory-size from HP-UX
Performance Monitors -> System Properties
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 05:20 AM
09-27-2005 05:20 AM
Re: Get installed memory-size from HP-UX
run ./print_manifest Get Admin Book and a test server and have at it...