04-09-2013
Depending on what exactly you want to do take your pick from: "sar", "vmstat", "svmon", "ps", and perhaps half a dozen other commands.
You can also write your own software using the PerfStat API, which is well documented. This is the interface most commands mentioned above take their data from. "topas", "nmon" and others also use this interface. Here is some sample utility to showcase how to use it:
ifstat sample utility.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. Shell Programming and Scripting
How can i determine the CPU usage of particular processes like mysqld,httpd etc. using shell script? (7 Replies)
Discussion started by: proactiveaditya
7 Replies
8. AIX
Hi Guys,
I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks.
Harby. (6 Replies)
Discussion started by: arizah
6 Replies
9. Shell Programming and Scripting
We are using linux server. We have below script running on the crontab and it send the alert if the cpu usage is above 90%.
My question is, the below script tells the CPU usage for one CPU or all CPU in the server?
sar 1 1 | sed '$!d' | awk '{printf("%d", $8)}' > $SAR_LOG
Please let me... (4 Replies)
Discussion started by: govindts
4 Replies
10. AIX
Hi, i have 2 identical web servers using AIX. I use nmon analyser to check their performance.
The server A exceeds 20% memory usage for system, 5% for cache and the rest 75% for processes. While, it uses 4% of Paging Space.
The server B exceeds 20% for system, 45% for cache and 35% for processes.... (24 Replies)
Discussion started by: dim
24 Replies
LEARN ABOUT CENTOS
ifstat
IFSTAST(8) System Manager's Manual IFSTAST(8)
NAME
ifstat - handy utility to read net interface statistics
SYNOPSIS
ifstat [options] [interface [interface [...]]]
DESCRIPTION
This manual page documents briefly the ifstat command.
ifstat neatly prints out network interface statistics. The utility keeps records of the previous data displayed in history files and by
default only shows difference between the last and the current call. Location of the history files defaults to /tmp/.ifstat.u$UID but may
be overridden with the IFSTAT_HISTORY environment variable.
OPTIONS
-h, --help
Show summary of options.
-V, --version
Show version of program.
-a, --ignore
Ignore the history file.
-d, --scan=SECS
Sample statistics every SECS second.
-e, --errors
Show errors.
-n, --nooutput
Don't display any output. Update the history file only.
-r, --reset
Reset history.
-s, --noupdate
Don't update the history file.
-t, --interval=SECS
Report average over the last SECS seconds.
-z, --zeros
Show entries with zero activity.
SEE ALSO
ip(8)
AUTHOR
ifstat was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
This manual page was written by Petr Sabata <contyk@redhat.com>.
IFSTAST(8)