The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Memory utilization of my Server salmanucit AIX 7 05-21-2009 10:12 PM
Getting CPU utilization and memory for a process radiatejava UNIX for Dummies Questions & Answers 5 03-03-2009 01:47 PM
CPU/Memory utilization khestoi UNIX for Dummies Questions & Answers 6 01-29-2009 06:15 PM
Utilization for memory and cpu magasem AIX 2 11-11-2006 08:36 PM
Memory Utilization Negm AIX 1 04-03-2005 11:23 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-30-2009
EmbedUX EmbedUX is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 23
Cool Memory Utilization

Hi,

Is it possible to obtain physical memory and swap memory available in HP-UX server.

I tried using "top" command but i'm not able to grep the memory part exclusively...

Thanks....
  #2 (permalink)  
Old 09-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
Code:
ant:/home/vbe $ cat /var/adm/syslog/syslog.log|grep Physi
Apr 29 19:05:34 2A:ant vmunix:     Physical: 8388608 Kbytes, lockable: 6464976 Kbytes, available: 7426824 Kbytes
ant:/home/vbe $ swapinfo -tam
             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        4000       0    4000    0%       0       -    1  /dev/vg00/lvol2
dev        4096       0    4096    0%       0       -    1  /dev/vg00/swap3
dev        4096       0    4096    0%       0       -    0  /dev/esvg01/lvol2
reserve       -    1257   -1257
memory     6326    1376    4950   22%
total     18518    2633   15885   14%       -       0    -
  #3 (permalink)  
Old 09-30-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,175
If you have "HP glance", there are command line options to find all this information and output to file.
  #4 (permalink)  
Old 10-01-2009
EmbedUX EmbedUX is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 23
Thanks for the help.

Will it be posible to have the disk usage of individual directories also under a file system, ??
  #5 (permalink)  
Old 10-01-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,175
An example of individual directory size of filesystem "/usr" sorted to reverse order of size in kilobytes.

Code:
find /usr/ -xdev -type d -exec du -kxs {} \;|sort -n -r |pg
The "-xdev" switch to "find" and the "-x" switch to "du" confine the figures to the current filesystem.

There is usually a slight discrepancy between the figures from "bdf" and "du".
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0