I have written this tiny script to accurately do the stuff. u can use this.
.
Save the below code between the Marker Lines, into a file called WHAT_EVER_YOU_WANT.sh and give it executable permissions by executing chmod as follows:
chmod +x ./WHAT_EVER_YOU_WANT.sh
And execute it, it will give you all the details like current RAM in MB's ( easy to understand ) and also who are connected remotely and form where. you can tailor it to use only the memory retrieval part also.
best,
-- Chandan Maddanna
Last edited by bakunin; 06-13-2009 at 02:44 AM..
Reason: added code-tags
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Hi all,
Could please let me know how to get the more memory free space (not added the RAM) in local zone.
-bash-3.00# vmstat 2 5
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
All,
AIX: 6.1 64 bits
How to find out Free memory available on AIX 6.1 64 bits
When I used :
svmon -G
size inuse free pin virtual mmode
memory 1048576 612109 191151 215969 549824 Ded-E
pg space 4325376 ... (1 Reply)
good morning,
how I can know how much total and free memory I have in my AIX 5.3 server, and this is shown in megabytes or gigabytes?
Thank you very much. (4 Replies)
Hi Experts, need some help.
I`m trying to write a shell script to get free, used and total memory on our linux servers.
It's working great, but i need follow some standards to make it a real nagios plugin.
It's pretty simple, you just type two parameters to the script, check_ram -w 80 -c 90... (4 Replies)
I am new to AIX, I have few AIX 5.3 servers and I could see there are significant difference in paging space utilization on servers even though they are running same applications
below server is working fine which shows 2-5 % paging usage throuh out the day
cpu_scale_memp = 8... (12 Replies)
Hi,
Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-
top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}'
Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Hi
I am trying to calculate memory used by Linux System
free -m
total used free shared buffers cached
Mem: 32109 31010 1099 0 3600 7287
-/+ buffers/cache: 20121 11987
Swap: 10239 1282 8957
Now according to my requirement Im calculating memory using below cmd
free -m | awk 'NR==3{printf... (2 Replies)
Discussion started by: sam@sam
2 Replies
LEARN ABOUT MOJAVE
vm_stat
VM_STAT(1) BSD General Commands Manual VM_STAT(1)NAME
vm_stat -- show Mach virtual memory statistics
SYNOPSIS
vm_stat [[-c count] interval]
DESCRIPTION
vm_stat displays Mach virtual memory statistics. If the optional interval is specified, then vm_stat will display the statistics every
interval seconds. In this case, each line of output displays the change in each statistic (an interval count of 1 displays the values per
second). However, the first line of output following each banner displays the system-wide totals for each statistic. If a count is pro-
vided, the command will terminate after count intervals. The following values are displayed:
Pages free
the total number of free pages in the system.
Pages active
the total number of pages currently in use and pageable.
Pages inactive
the total number of pages on the inactive list.
Pages speculative
the total number of pages on the speculative list.
Pages throttled
the total number of pages on the throttled list (not wired but not pageable).
Pages wired down
the total number of pages wired down. That is, pages that cannot be paged out.
Pages purgeable
the total number of purgeable pages.
Translation faults
the number of times the "vm_fault" routine has been called.
Pages copy-on-write
the number of faults that caused a page to be copied (generally caused by copy-on-write faults).
Pages zero filled
the total number of pages that have been zero-filled on demand.
Pages reactivated
the total number of pages that have been moved from the inactive list to the active list (reactivated).
Pages purged
the total number of pages that have been purged.
File-backed pages
the total number of pages that are file-backed (non-swap)
Anonymous pages
the total number of pages that are anonymous
Uncompressed pages
the total number of pages (uncompressed) held within the compressor
Pages used by VM compressor:
the number of pages used to store compressed VM pages.
Pages decompressed
the total number of pages that have been decompressed by the VM compressor.
Pages compressed
the total number of pages that have been compressed by the VM compressor.
Pageins
the total number of requests for pages from a pager (such as the inode pager).
Pageouts
the total number of pages that have been paged out.
Swapins
the total number of compressed pages that have been swapped out to disk.
Swapouts
the total number of compressed pages that have been swapped back in from disk.
If interval is not specified, then vm_stat displays all accumulated statistics along with the page size.
Mac OS X August 13, 1997 Mac OS X