Search This Blog

Thursday, December 15, 2011

pseudo – terminals

Nice little article for pseudo terminal can be found on below link.

Thursday, December 8, 2011

Network monitoring with vnstat.

vnstat tool is use to monitor network traffic live / hourly/daily/weekly /monthly.

This is useful for linux network monitoring.

this is console based monitoring tool but GUI can also be configured with the help of PHP server.


Let us monitor one fo the server.

After installing the correct rpm .
First update the vnstat for specific port(In my case i wanted to monitor eth0)
vnstat -u -i eth0
once you update the database
just run the command press ctrl-c to stop ,this will produce the network traffic summery for specified interface.

# vnstat -l -i eth0

Monitoring eth0... (press CTRL-C to stop)

rx: 44 kbit/s 23 p/s tx: 132 kbit/s 19 p/s

eth0 / traffic statistics

rx | tx
bytes 1.35 MiB | 1.66 MiB
max 224 kbit/s | 368 kbit/s
average 48.03 kbit/s | 58.77 kbit/s
min 20 kbit/s | 0 kbit/s
packets 5332 | 4217
max 133 p/s | 127 p/s
average 23 p/s | 18 p/s
min 4 p/s | 1 p/s
time 3.85 minutes

Tuesday, December 6, 2011

rpm rebuild

Most of the time you are not able to run any rpm queries such as\
rpm -qa
it just stuck after giving the command.

Well this comes to your rescue.

Sunday, December 4, 2011

Install New Network Driver using YUM

Recently i was having some trouble in my network connections so i decided to update the Intel 82576 Gigabit Ethernet Controller driver with the latest one.

The latest one available on site was igb-3.2.10 drivers so i downloaded them and tried to install them but i failed as kernel-development and Development libraries necessary to install the drivers were missing from the OS.

Being a proprietary OS i had to do it using yum.

you may use any of the following command to install the necessary packages and libraries but for my specific case the first one worked well.

# yum install make automake gcc gcc-c++ kernel-devel byacc

# yum groupinstall ‘Development Tools’

# yum groupinstall ‘Development Libraries’

after installing the necessary packages i head forward to install the drivers.

The driver file was come as igb-3.2.10.tar.gz
#tar -zxvf igb-3.2.10.tar.gz
#cd igb-3.2.10
#cd src
#make install

and i was able to install the drivers.

Checked the new driver version using
# modinfo driver-name