It would help if you describe better your requirements.
"Periodically run vmstat"
with "when" being something depending on the sampling interval you are looking for and "what" being:
"run vmstat and store the output":
There are many free and commercial tools that would do a better job to collect and display that data though.
I'm looking at crontab now to see how it works. Thanks a lot for pointing that out.
Hi ,
How do i check that the CPU is online/offline in a multi CPU machine in Linux ?
i tired /proc/cpuinfo
dmesg
nothing gave me the currect CPU status.
Pls help !! (5 Replies)
Hi all,
Unix has the TOP and SAR command to monitor machine's performance. Can it be used in a script to alert if the cpu utilization is more than 80 or memory used is more than 90.
Is SAR preferable than TOP?
Please advise. (3 Replies)
Hi Guys,
Hopefully someone would be able to help me out. Basically I have an HPUX 11.11i system which is backed up by Data Protector 4.5. Every so often the vdba process hangs and chews up 100% of one of the systems CPU resources. As our monitoring tool can only monitor on a per system basis... (3 Replies)
Dear All master
We have Sunfire memory 16G memory and 8 Processor.
I install with Solaris 10,
but i think resource that use all proccess is very much,
I installed this machine 3 times, twice install Oracle the load process make machine is very slow.
in new install process like this,... (1 Reply)
Hi all
can any one help me to script monitoring
CPU load avg when reaches threshold value
and disk usage if it exceeds some %
tried using awk but when df -h out put is in two different lines awk doesnt work for the particular output in two different line ( output for df -h is in two... (7 Replies)
Hi All,
There is a shell script that captures Memory status in AIX 6.1 64 bits!
I need it to be validated by shell script experts for the following:
Shell Script:
cat memusageAIX.sh
#!/usr/bin/ksh
#
# Memory usage under AIX
#
USED=`svmon -G | head -2 | tail -1 | awk '{ print $3... (1 Reply)
I am looking for a way to log and graphically display cpu and RAM usage of linux processes over time. Since I couldn't find a simple tool to so (I tried zabbix and munin but installation failed) I started writing a shell script to do so
The script file parses the output of top command through... (2 Replies)
Viewers Please help me to get out of the below issue.. Thanks in advance
Required shell script for Monitoring status of the objects and it should update the child objects status as well.
Requirements:-
1. We are working on IIB (IBM Integration Bus v10) and trying to implement the broker ('... (0 Replies)
Discussion started by: dsreddy447
0 Replies
LEARN ABOUT ULTRIX
vmstat
vmstat(1) General Commands Manual vmstat(1)Name
vmstat - report virtual memory statistics
Syntax
vmstat [ interval [ count ] ]
vmstat -v [ interval [ count ] ]
vmstat -fKSsz
vmstat -Kks namelist [ corefile ]
Description
The command reports statistics on processes, virtual memory, disk, trap, and cpu activity.
If is specified without arguments, this command summarizes the virtual memory activity since the system was last booted. If the interval
argument is specified, then successive lines are summaries of activity over the last interval seconds. Because many statistics are sampled
in the system every five seconds, five is a good specification for interval; other statistics vary every second. If the count argument is
provided, the statistics are repeated count times.
When you run the format fields are as follows:
Procs: information about numbers of processes in various states.
r in run queue
b blocked for resources (i/o, paging, and so on.)
w runnable or short sleeper (< 20 seconds) but swapped
faults: trap/interrupt rate averages per second over the last 5 seconds.
in (non clock) device interrupts per second
sy system calls per second
cs cpu context switch rate (switches/second)
cpu: breakdown of percentage usage of cpu time
us user time for normal and low priority processes
sy system time
id cpu idle time
Memory: information about the use of virtual and real memory. Virtual pages are considered active if they belong to processes which are
running or have run in the last 20 seconds.
avm active virtual pages
fre size of the free list
Pages are reported in units of 1024 bytes.
If the number of pages exceeds 9999, it is shown in a scaled representation. The suffix k indicates multiplication by 1000 and the suffix
m indicates multiplication by 1000000. For example, the value 12345 appears as 12k.
page: information about page faults and paging activity. These are averaged every five seconds, and given in units per second. The size
of a unit is always 1024 bytes and is independent of the actual page size on a machine.
re page reclaims (simulating reference bits)
at pages attached (found in free list not swapdev or filesystem)
pi pages paged in
po pages paged out
fr pages freed per second
de anticipated short term memory shortfall
sr pages scanned by clock algorithm, per-second
disk: s0, s1 ...sn: Paging/swapping disk sector transfers per second (this field is system dependent). Typically paging is split across
several of the available drives. This will print for each paging/swapping device configured into the kernel.
Options-f Provides reports on the number of forks and vforks since system startup and the number of pages of virtual memory involved in each
kind of fork.
-K Displays usage statistics of the kernel memory allocator.
-k Allows a dump to be interrogated to print the contents of the sum structure when specified with a namelist and corefile. This is
the default.
-S Replaces the page reclaim (re) and pages attached (at) fields with processes swapped in (si) and processes swapped out (so).
-s Prints the contents of the sum structure, giving the total number of several kinds of paging related events that have occurred since
boot.
-v Prints an expanded form of the virtual memory statistics.
-z Zeroes out the sum structure if the UID indicates root privilege.
Examples
The following command prints what the system is doing every five seconds:
vmstat 5
To find the status after a core dump use the following:
cd /usr/adm/crash
vmstat -k vmunix.? vmcore.?
Files
Kernel memory
System namelist
vmstat(1)