The diagnostic programs described below check the status of various parameters. Each accepts a numerical option that specifies the time interval between status checks. If the interval option is not used, the diagnostics output an average value for the respective parameter since boot time. Specify the numerical value at the end of the command to get current information.
Use /usr/bin/netstat to check local system network traffic. For example:
% netstat -ni 3
checks and reports traffic every 3 seconds.
Use /usr/bin/iostat to display disk and system usage. For example:
% iostat -c 2
displays percentage utilizations every 2 seconds.
Use /usr/bin/vmstat to generate additional information about the virtual memory system. For example:
% vmstat -S 5
reports on swapping activity every 5 seconds.
It can be useful to run these diagnostics periodically, monitoring their output for multiple intervals.