- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting information on installed 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
12-23-2008 01:04 AM
12-23-2008 01:04 AM
I want to find out the installed memory on a HP-UX system. The constraints are that I cannot use root credentials and the STM utility is not working.
Is there any command which will give me this information? I will prefer command over any utility for getting this information.
Please help.
Thanks,
Vineet
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 01:15 AM
12-23-2008 01:15 AM
Re: Getting information on installed memory
Use #galnce
Reagrds
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 01:17 AM
12-23-2008 01:17 AM
Re: Getting information on installed memory
#glance -m
here it will show physical mem
Reagrds
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 01:18 AM
12-23-2008 01:18 AM
Re: Getting information on installed memory
Yes, it is one of those issues that come up often.
Some simple possibilities with relatively
reliable results:
# swapinfo -tm
...look for memory line and add columns
together
# top -d 1
... again, look for memory line
Cheers,
VK2COT
PS. It is one of my around 20 different recommendations to add proper, simple command-line interface for
checking RAM in HP-UX 11.41. As Unix Ambassador at HP, I have right and
obligation to report what our customers
need and want :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 02:04 AM
12-23-2008 02:04 AM
Re: Getting information on installed memory
top and swapinfo -tam are the command
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 02:07 AM
12-23-2008 02:07 AM
Re: Getting information on installed memory
one more i missed
dmesg | grep -i physical
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 03:13 AM
12-23-2008 03:13 AM
Re: Getting information on installed memory
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 04:47 PM
12-23-2008 04:47 PM
Re: Getting information on installed memory
print_manifest will not work for non-root users.
It only runs for privileged accounts :)
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 09:19 PM
12-23-2008 09:19 PM
Re: Getting information on installed memory
#cstm
>selall
>infolog
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 11:27 PM
12-23-2008 11:27 PM
Re: Getting information on installed memory
$echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2008 05:42 AM
12-24-2008 05:42 AM
Re: Getting information on installed memory
Thank you very much for your help. I'll try and reply to all the commands:-
1) I cannot use STM as its not working
2) I cannot use print_manifest as it requires root credentials
3) I also cannot use top
4) glance is also not present
5) I did some testing for swapinfo -tm but I am getting different values as compared to STM
Adding columns of total gives a very large value for Memory.
So from all this I think swapinfo sounds a good option but I am having trouble in finding what is the exact size of memory. Following is a sample output. Please help me interpret it:-
$ /usr/sbin/swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 3072 24 3048 1% 0 - 1 /dev/vg00/lvol2
dev 3000 24 2976 1% 0 - 1 /dev/vg01/swap
reserve - 1017 -1017
memory 2330 1995 335 86%
total 8402 3060 5342 36% - 0 -
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2008 06:03 AM
12-24-2008 06:03 AM
Re: Getting information on installed memory
memory 2330
The value 2330 Mb multiplied by a magic number, probably 4/3, is the memory you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2008 06:40 AM
12-24-2008 06:40 AM
Re: Getting information on installed memory
command to check the Installed memory
machinfo |grep -i memory.
swapinfo -m ( see the dev)
Thz,
Analyst.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2008 10:27 PM
12-28-2008 10:27 PM
Re: Getting information on installed memory
I tried machinfo and swapinfo -m.
machinfo is not available on some of my HP B.11.11 machines.
I am still having problems in interpreting the swapinfo -m output. These are the outputs of stm and swapinfo -m used on the same machine.
When I run stm using command:echo "scl type memory \\n info ; wait \\n infolog" 2>/dev/null | /usr/sbin/cstm 2>/dev/null and look for Total Configured Memory I get it as 3072 MB.
And swapinfo -m gives this output:-
$ /usr/sbin/swapinfo -m
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 3072 86 2986 3% 0 - 1 /dev/vg00/lvol2
dev 3000 87 2913 3% 0 - 1 /dev/vg01/swap
reserve - 904 -904
memory 2330 1995 335 86%
Here the first first entry in dev gives the correct memory but on another machine I am getting memory from STM as 8192 MB and memory from swapinfo -m as 4096.
Please help.
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2008 12:02 AM
12-29-2008 12:02 AM
Re: Getting information on installed memory
Always use -tam. And probably you should only be looking at the total line.
>look for "Total Configured Memory" I get it as 3072 MB.
This is how much you have. Stop, don't look any further.
>swapinfo -m gives this output:
>dev 3072 86 2986 3% 0 - 1 /dev/vg00/lvol2
>memory 2330 1995 335 86%
>Here the first first entry in dev gives the correct memory
Device swap has nothing to do with RAM. Only because of guidelines of how much swap to add.
The memory line (pseudo-swap) in swapinfo may be different than actual memory size, as I mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 03:26 AM
01-05-2009 03:26 AM
Re: Getting information on installed memory
I still don't have a solution to my problem. From STM I am getting physical memory as 3072 MB which it seems is very accurate.
However swapinfo -tam gives me this output:
$ /usr/sbin/swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 3072 86 2986 3% 0 - 1 /dev/vg00/lvol2
dev 3000 87 2913 3% 0 - 1 /dev/vg01/swap
reserve - 556 -556
memory 2330 1995 335 86%
total 8402 2724 5678 32% - 0 -
In this output the only value corresponding to value given by STM is in the dev row which it seems is not the same thing right.
So which value in this output is correct? Is there any other command which gives physical memory? Till now these are the options tries by me:-
1) STM : Does not work
2) swapinfo -tam : Problem in understanding output
3) machineinfo : Does not work
4) top : Not possible to use
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 06:32 AM
01-05-2009 06:32 AM
Re: Getting information on installed memory
Sample attached, all you really care about here is the physical_memory field of the pst_static structure filled in from pstat_getstatic() to answer this question, so you could strip it down to just that if you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 07:18 AM
01-05-2009 07:18 AM
Re: Getting information on installed memory
When you say STM isn't working, what do you mean?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 07:36 AM
01-05-2009 07:36 AM
Re: Getting information on installed memory
You are very wise. I've found that there are two types of tech troubleshooters: ones who "make the error go away" and ones who "fix the problem".
Those in the first group firmly believe they are performing the second. Those of us in the second group realize that those in the first are not. :-)
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 07:37 AM
01-05-2009 07:37 AM
Re: Getting information on installed memory
I wholly agree with Duncan --- "fix" STM.
> I want to find out the installed memory on a HP-UX system. The constraints are that I cannot use root credentials and the STM utility is not working...
Is this some academic exercise?
> Is there any command which will give me this information? I will prefer command over any utility for getting this information.
How do you define "command" versus "utility"?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 08:09 AM
01-05-2009 08:09 AM
Re: Getting information on installed memory
Yes I do agree with your views. But STM was not working at a Customer's side so I was trying to find out an alternative command. But now I do feel that getting STM to work is the best option. Thank you.
- Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 08:41 AM
01-05-2009 08:41 AM
Re: Getting information on installed memory
Then STM is working.
>In this output the only value corresponding to value given by STM is in the dev row
As I said, this correspondence may have to do with convention. Don't rely on it.
>1) STM: Does not work
Does it not work at your customer's site?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 07:39 PM
01-05-2009 07:39 PM
Re: Getting information on installed memory
STM is not working at the Customer's end. I was trying to find an alternative command at my end and was tallying the output with STM at my end to check accuracy.
Thanks,
Vineet