- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding RAM SIZE in HP-UX as a normal user???
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
тАО05-04-2006 12:13 AM
тАО05-04-2006 12:13 AM
Thanks in Advance..
Muthukumaran.M
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 12:21 AM
тАО05-04-2006 12:21 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
if you have access to perl:
perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");
syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 12:22 AM
тАО05-04-2006 12:22 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
grep Physical /var/adm/syslog/syslog.log
and you get it in bytes
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 12:23 AM
тАО05-04-2006 12:23 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 12:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 01:16 AM
тАО05-04-2006 01:16 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
But the cmd
echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm
worked like a charm
Basic Memory Description
Module Type: MEMORY
Total Configured Memory : 1024 MB
Page Size: 4096 Bytes
Memory interleaving is supported on this machine and is ON.
Memory Board Inventory
DIMM Slot Size (MB)
--------- ---------
0A 256
0B 256
1A 256
1B 256
--------- ---------
System Total (MB): 1024
...This is de part of o/p I have got but my problem is whether I have to take the one in
Basic memory description or the System total in Memory Board Inventory...Was jus inquistive to know whether they might differ or not..Please suggest..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 04:03 AM
тАО05-04-2006 04:03 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
You can take a look at these threads,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1008114
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1011122
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 04:52 AM
тАО05-04-2006 04:52 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
cstm is part of the online diagnostics and normally installed by HP on every machine. However, some sysadmins either remove the diagnostics or reinstall HP-UX without them (neither is a good idea) which makes the cstm less portable. However, I would see the lack of cstm as a red flag and get it remedied. You can see an amazing amount of information through cstm:
CPU boards:
echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm
LAN cards:
echo "selclass qualifier lan;info;wait;infolog" | /usr/sbin/cstm
Memory:
echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm
DIsks:
echo "selclass qualifier disk;info;wait;infolog" | /usr/sbin/cstm
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 07:29 AM
тАО05-04-2006 07:29 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm too...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 07:36 AM
тАО05-04-2006 07:36 AM
Re: Finding RAM SIZE in HP-UX as a normal user???
Thanks for all ur help so far :)