- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: System RAM memory
Categories
Company
Local Language
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-18-2002 02:08 AM
02-18-2002 02:08 AM
System RAM memory
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 02:13 AM
02-18-2002 02:13 AM
Re: System RAM memory
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc75d50011d20d6118ff40090279cd0f9,00.html
Cheers, Ian Dennison
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 02:41 AM
02-18-2002 02:41 AM
Re: System RAM memory
typeset -i mem=$(grep Physical /var/adm/syslog/syslog.log | awk '{print $7}')
echo $(hostname) has $mem bytes memory.+- $(( $mem /1024 )) mb
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 03:03 AM
02-18-2002 03:03 AM
Re: System RAM memory
what is your needed information?
--> systems total physical memory?
--> system memory + swapspace?
--> available swapspace only?
which output do you want, KB or MB?
please post what you want exactly.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 04:50 AM
02-18-2002 04:50 AM
Re: System RAM memory
If a view of physical memory is what you seek, including DIMM sizes and arrangements, use this:
# 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
02-18-2002 05:34 AM
02-18-2002 05:34 AM
Re: System RAM memory
Try this,
echo phys_mem_pages/D |adb /stand/vmunix /dev/mem
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:36 AM
02-18-2002 05:36 AM
Re: System RAM memory
If you want to find out the size of memory modules on your system, the slots being used, try this,
echo 'selclass qualifier memory;info;wait;infolog'|cstm >/tmp/meminfo.txt
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 12:07 PM
02-18-2002 12:07 PM
Re: System RAM memory
If you would like to script this... The easiest and most efficient way to do is:
To print on stdout:
awk -F ": " '/Ph/{print $3}' /var/adm/syslog/syslog.log | awk '{print $1}'
To capture it in a variable:
TOT_MEMORY=`awk -F ": " '/Ph/{print $3}' /var/adm/syslog/syslog.log | awk '{print $1}'`
Hope this helps !
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 12:34 PM
02-18-2002 12:34 PM
Re: System RAM memory
RAM=`/opt/ignite/bin/print_manifest | grep "Main Memory" | awk '{ print $3 }'`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 12:47 PM
02-18-2002 12:47 PM
Re: System RAM memory
Well, I think the print_manifest command actually parses the manifest file (also manifest.info)... so basically you could do this.. instead of running the print_manifest command (save some time :-))
TOT_MEMORY_MB=`awk '/Memory/{print $3}' /opt/ignite/data/tutorial/manifest`
-Shabu