Saturday, 18 June 2011

Produce and deliver reports on system utilization (processor, memory, disk, and network)

This is a relatively easy objective. You need to use the sar command. This command has a large number of flags that can be combined. If you want to get everything, hopefully you won't have to analyse it :), just use:
sar -A
In order to get processor utilization statistics use simply use (note that cpunumber is zero based, in other words the first cpu is 0) :
sar -P cpunumber
sar -u ALL
In order to get memory usage statistics, use:
sar -rR
To get swap usage statistics, use:
sar -S
Arguably paging usage statistics are part of the memory, so:
sar -B
You can get disk usage statistics with:
sar -b
sar -d
or even
sar -dp
Finally network usage statistics can be obtained with (note that there are over 15 different keyworks, e.g. ICMP, EICMP,TCP, ETCP etc, and you can normally add an E to the keyword to get the error statistics):
sar -n DEV
sar -n EDEV
Unfortunately, the manual page is very long and unwieldy, so it might be a good idea to remember some of these by heart for the exam.

No comments:

Post a Comment