Author: Surendra Anne

How To Use VNSTAT To Monitor Bandwidth Usage.

There are so many tools to monitor network such as MRTG, now I am going to explain such tool which monitors bandwidth for a system, ie vnstat(view network statistics). Its very much easy to install and configure. This tool can give you full details about how much bandwidth used on the basics of, Per month. Per week. Per day. Per hour. Per second. Even we can see live traffic. This is awesome tool . So all the tools will not only have advantages but also disadvantages, here are they: 1)Can not monitor multiple interfaces at a time. 2)Can not monitor remote host. 3)Can not monitor per host statistics(which is verymuch useful to find the network hogger, if you want per host bandwidth analyser then use iptables counters for it). Before configuring vnstat, one thing we have to keep in mind that vnstat is a aggregating tool which is required to run at regular intervals to monitor network bandwidth. So by default when we install vnstat a cron job is created at /etc/cron.d folder. Step1 : installing vnstat #rpm –ivh vnstat-1.6-2.fc9.i386.rpm Step2 : Configuring vnstat. As I mention earlier that vnstat is an aggregate tool so it should run background by using crontab, So first edit the cron job Vi /etc/cron.d/vnstat */5 * * * * vnstat /usr/sbin/vnstat.cron Add the above line to the file, then save it and exit....

Read More

8 Ways To Mount SMBfs (SAMBA FILE SYSTEM) In Linux.

How to Mount smbfs (SAMBA file system) permanently in Linux.In this post I am going to give some examples how to do SMB (Server Message Block) mounts..   Type1 : Listing SMB shared folder through command prompt #smbclient –L ipadd –U username Here –L will specify listing of SMB share for the server with ipadd Or #smbclient //192.168.0.1/share1 –U username   Example : #smbclient –L 192.168.0.1 –U root   Type2 : Mounting SMB share on local folder by using smbmount command #smbmount //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname   Example : #smbmount //192.168.0.1/share1 /mnt –o username=steev,workgroup=test     Type3 : Mounting SMB share by using mount command #mount –t smbfs ipadd:/sharename /mountpoint –o username=userid,workgroup=workgroupname Or #mount –t smbfs //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname   Example : #mount –t smbfs 192.168.0.1:/share1 /mnt –o username=surendra,workgroup=test   Type4 : Mounting CIFS (Common Internet File System) is nothing but a advanced SMB file system implementation which support RAP (Remote Access Protocol) #mount –t cifs ipadd:/sharename /mountpoint –o username=userid,workgroup=workgroupname   Example : #mount –t cifs 192.168.0.1:/share1 /test –o username=Surendra,workgroup=test   Type5 : All the above commands will ask password to display/mount the share name, however we can specify the password in command it’self as below #mount -t smbfs -o username=userid,workgroup=workgroupname,password=XXXXX //ipadd/sharepoint /mountpoint/   Example : #mount –t smbfs –o username=Surendra,workgroup=test,password=xylBJRS8 //192.168.0.1/share1 /test   Type6 : Mounting permanently by editing /etc/fstab file, below is the fstab file entry...

Read More

RSYNC –The tool every Admin should know

Recently I came accross rsync utility... Its an awesome command it is a sub service under xinetd along with some other services such as tftp, rcp, rsh, rlogin, telnet etc..Let us list advantages of this command then we will know how to configure it.Advantages of rsync :This tool will keep both the destination and source folder synced. rsync is fast, because it will not copy entire data every time it got synced, it just copes the date which got changed from the previous copy. For security reasons, rsync will support ssh to transfer data between two machines.rsync is used to download RPM updated repository to local machine.And a lot more advantages are there.. please share your valuable experiences here.Configuration : rsyncSome points to be remembered when dealing with rsyncThis utility is the part of xinetd so there is no special package for this.When we are doing rsync between two systems, both the systems should be configured to allow rsync connections.rsync uses 873.Step1 : Install xinetd package, if you want to configure yum server click here.#yum install xinetdStep2 : Configure rsync to allow connections, the configuration file for rsync is located in /etc/xinetd.d#cd /etc/xinetd.d#vi rsync# default : off# description: The rsync server is a good addition to an ftp server, as it # allows crc checksumming etc.service rsync{disable = yessocket_type = streamwait = nouser = rootserver = /usr/bin/rsyncserver_args = --daemonlog_on_failure...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.