Showing posts with label Ubuntu Network. Show all posts
Showing posts with label Ubuntu Network. Show all posts

Monday, April 4, 2011

[Linux Ubuntu] How to Monitor Network Utilization

Once more component should be monitored. It is network interface utilization. Here is the command line:
sar -n DEV 1
-n stands for network and DEV for DEVICE. This command will print network statistics for all available interfaces. In the next post we will try to daemonize these monitoring processes so that we don't need to issue the command manually.

[Linux Ubuntu] How to Check Disk and Swap Utilization

Disk and swap is a couple. When disk is full and he needs help, swap will ready to server :). How can we observe these two components of our server? Still employing sar, here is the code:
sar -d 1
sar -S 1
Parameter -d and -S for disk and swap, respectively. They will show us how many percent disk utilization or swap used. Enjoy!

[Linux Ubuntu] How to Check Memory Utilization

Yeah, we still employ the powerful sar (System Activity Reporter). This is a command line to check memory utilization by using sar:
sar -r 1
That's a per-second basis and you can add one more parameter to monitor the current second.
sar -r 1
The last "1" means sar only show one record only. Thanks for reading :)

[Linux Ubuntu] How to Check CPU Utilization

Make sure you follow the steps explained in previous post :). Using sar, we can also monitor CPU utilization per second. Just press Ctrl+Alt+T to open Terminal and here is the command line to check CPU utilization per second:
sar -u 1
If you want to know CPU utilization in current second, just add one parameter behind like this:
sar -u 1 1
And it's done!

[Linux Ubuntu] How to Check CPU/Processor Speed

Let's follow these steps:

# Make sure your pc connect to mirror and get updated (don't forget to set up source.list file)
sudo apt-get update
# Install sysstat package. This package contains complete-enough system performance tools for Linux
sudo apt-get install sysstat
# We will use one of package contained in sysstat. It is sar (System Activity Reporter). To check CPU or processor speed per second, issue this command in your lovely Terminal
sar -m 1
It is the mean speed of all of your processor cores. Enjoy!