- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get the "Mem Util" %, without using glance...
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
05-14-2004 12:39 AM
05-14-2004 12:39 AM
e.g.:
Mem Util S SU UB B | 94% 95% 95%
We don't have the license for glance, but want to monitor this value ...
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 12:46 AM
05-14-2004 12:46 AM
Re: How to get the "Mem Util" %, without using glance ?
why not use the HP workload manager you can have a 60 day trial for free
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8843CATRY
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 12:49 AM
05-14-2004 12:49 AM
Solution# memdetail
Memory Stat total used avail %used
physical 10080.0 10016.8 63.2 99%
active virtual 11428.6 4639.0 6789.6 41%
active real 7461.4 2939.8 4521.5 39%
memory swap 7697.1 1715.1 5981.9 22%
device swap 26528.0 11041.0 15487.0 42%
You can also get some info with vmstat and swapinfo.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 12:53 AM
05-14-2004 12:53 AM
Re: How to get the "Mem Util" %, without using glance ?
You will see something similar to :
Memory: 109172K (39624K) real, 113228K (46160K) virtual, 81524K free
no % but good enough I hope.
You can try "vmstat" as well.
vmstat 5 2 will show you i.e. :
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
0 0 0 9352 21066 50 25 0 0 25 0 0 1127 2256 137 6 9 85
0 0 0 10486 21021 28 2 0 0 2 0 0 1591 1209 85 5 6 90
The values are in Pages, and 1 page = 4KB as far as I know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 01:03 AM
05-14-2004 01:03 AM
Re: How to get the "Mem Util" %, without using glance ?
Hi Geoff, do you know how to use vmstat and swapinfo to get that "mem util" %, exactly the same value ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 01:10 AM
05-14-2004 01:10 AM
Re: How to get the "Mem Util" %, without using glance ?
try this...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=448929
surely helps you
Regds
LF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 03:35 AM
05-14-2004 03:35 AM
Re: How to get the "Mem Util" %, without using glance ?
top -f /tmp/top.out
grep Memory /tmp/top.out
To see free memory with vmstat:
vmstat 1 2 | tail -1 | awk '{printf "%d%s\n", ($5*4)/1024, "MB" }'
But I thinkg the memdetail program is the best...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 04:24 AM
05-14-2004 04:24 AM
Re: How to get the "Mem Util" %, without using glance ?
#!/bin/sh
typeset -i free used total percent
free=`vmstat 1 2 | tail -1 | awk '{print ($5*4)/1024}'`
total=`echo 'phys_mem_pages/D'|adb /stand/vmunix /dev/kmem|grep pages | tail -1 | awk '{print $2*4/1024}'`
((used=$total-$free))
((percent=$used *100 / $total ))
print "used memory: $percent%"
Rgds...Geoff