- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Basic Q #1: How to show memory
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
03-27-2002 06:08 AM
03-27-2002 06:08 AM
First:
What's the best way to find the amount of physical memory installed in a system running hpux11.00? What I'm looking for is something with output in a consistent format, something like meminfo, free, or even vmstat on some systems (although I'm not grasping how to display total RAM using vmstat on hpux).
Caveat:
Certain methods are unacceptable:
- Grep'ing the output of dmesg for "Physical". Not acceptable because it is unreliable - the line in question may or may not be there in the output depending on how much other data there is to show and there may or may not be another occurance of that word in the output.
- Grep'ing for Physical in the syslog - unacceptable for the same reasons listed above.
- Using top, glance, gpm, etc - unacceptable because they're interactive, curses/X based tools and what I need is something I can use to pull the data into a script.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:13 AM
03-27-2002 06:13 AM
Re: Basic Q #1: How to show memory
shows about everything
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:17 AM
03-27-2002 06:17 AM
Re: Basic Q #1: How to show memory
From James R. Ferguson's reply in:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x93f6a12d6d27d5118fef0090279cd0f9,00.html
echo "selclass qualifier memory;info;wait;infolog"|cstm | grep "Total Physical Memory"
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:25 AM
03-27-2002 06:25 AM
Re: Basic Q #1: How to show memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:26 AM
03-27-2002 06:26 AM
Re: Basic Q #1: How to show memory
You can also try,
echo 'selclass qualifier memory;info;wait;infolog' |cstm >/tmp/meminfo.txt
more /tmp/meminfo.txt
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:28 AM
03-27-2002 06:28 AM
Re: Basic Q #1: How to show memory
You might want to use the SysInfo script.
Check following link.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1a6646ff9277d511abcd0090277a778c,00.html
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:56 AM
03-27-2002 06:56 AM
Re: Basic Q #1: How to show memory
have you checked the tools sam uses? Try /usr/sam/lbin/getmem. This will show the installed RAM in MB.
I use this im my inventoryscript and it works fine for me.
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 07:17 AM
03-27-2002 07:17 AM
Re: Basic Q #1: How to show memory
Thanks for everyone's help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 08:19 AM
03-27-2002 08:19 AM
Re: Basic Q #1: How to show memory
Here is a basic c scripts which will give output as :
Memory Stat total used avail %used
physical 32764.0 13775.3 18988.7 42%
active virtual 6410.8 2646.3 3764.5 41%
active real 7351.8 2848.8 4503.0 39%
memory swap 26522.5 8940.3 17582.2 34%
device swap 3332.0 3332.0 0.0 100%
Just compile it using cc file name and you are good to go . ( I got this form the forum only ).I have attached it to the answer.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 01:37 AM
03-28-2002 01:37 AM
Re: Basic Q #1: How to show memory
As you find "SysInfo" useful
you may want to check "cfg2html", too. [1]
pro: beside the version for hpux there are also collectors for aix, SunOS, SCO, linux, ...
con: "not supported", provided as is (however, enhancement requests are implemented pretty fast by [2])
[1] http://come.to/cfg2html
[2] http://groups.yahoo.com/group/cfg2html/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 03:40 AM
03-28-2002 03:40 AM
Re: Basic Q #1: How to show memory
Your program in C it??s more useful for me !!
It??s a substitute for Glance !!
[]??s