{"id":1014,"date":"2019-03-09T00:07:14","date_gmt":"2019-03-09T00:07:14","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=1014"},"modified":"2019-06-23T14:18:47","modified_gmt":"2019-06-23T14:18:47","slug":"commands-for-linux-network-traffic-monitoring","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/commands-for-linux-network-traffic-monitoring\/","title":{"rendered":"Commands for Linux Network Traffic Monitoring"},"content":{"rendered":"\n<p>Monitoring is one of the main task that anyone SystemAdmin or even a normal user should know about to get the best out of their systems\/servers &amp; avoid any issues.<\/p>\n\n\n\n<p>Bundles for a portion of the directions referenced here are accessible on EPEL store. The direction to introduce EPEL repo on your framework is referenced underneath. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1- Iftop command<\/h3>\n\n\n\n<p>Iftop command provides real time monitoring of network bandwidth. It helps us measure the total data moving in &amp; out of the individual socket connections i.e. it captures packets moving in and out from our network adapters &amp; than it sums up to find the bandwidth being utilized by our servers.<\/p>\n\n\n\n<p>Now to install it on your systems, run the following command from your terminal,<\/p>\n\n\n\n<p><strong>yum install iftop<\/strong><br><br>Than to start monitoring the network, run the following command, <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2- tcptrack command<\/h3>\n\n\n\n<p>Next on the list of Linux Network Traffic monitoring commands is \u2018tcptrack\u2019 command. This command is quite similar to iftop command. Tcptrack captures packets &amp; calculate network bandwidth for each tcp connection, it used pcap library to do so.<\/p>\n\n\n\n<p>To install it on your systems, use the following command,<\/p>\n\n\n\n<p><strong>yum install tcptrack<\/strong><br><br>Next, to start using it &amp; get the network stats, open terminal &amp; run the following command, <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3- Nload command<\/h3>\n\n\n\n<p>Nload command is used to get information regarding incoming &amp; outgoing traffic of the server. It produces a graph separately to indicate the incoming as well as outgoing traffic. But one downside to this command is that, it does not support many options i.e. we won\u2019t get much information related to individual processes but one can adjust the scale.<\/p>\n\n\n\n<p>Install it using the following command,<\/p>\n\n\n\n<p><strong>&nbsp;yum install nload<\/strong><br><br>Now to start using it, run <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4- Iptraf commands<\/h3>\n\n\n\n<p>This is one of the useful network monitoring tool &amp; I use it all the time. Iptraf provides a colorful &amp; interactive list of traffic going in &amp; out to other servers or hosts. This produces a list with all hosts from which traffic is going in &amp; out of from our system.<\/p>\n\n\n\n<p>To install it on the system, use one of the following commands,<\/p>\n\n\n\n<p><strong>&nbsp;yum install iptraf-ng<\/strong><br> <br>Now to get the network traffic reports, run the following command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Netdiag utility<\/strong><\/h3>\n\n\n\n<p>\n\nNetdiag is a collection of network diagnostics tools &amp; commands like netwatch, trafshow &amp; netload commands are all part of it. So we only need to install netdiag package to get all these commands,\n\n<\/p>\n\n\n\n<p><strong>yum install netdiag<\/strong><br> <br>Now let\u2019s discuss the Netwatch, Trafshow &amp; Netload command one by one <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5- Netload command<\/h3>\n\n\n\n<p>Of all the commands that are part of netdiag package, netload is simplest to learn in the sense that it provided only a simple report on current network traffic. It also shows total number of data transferred since its start, other than that it doesn\u2019t support much other options for any detailed report.<\/p>\n\n\n\n<p>To get the netload report, run the netload command followed by the ethernet port name. For example,<\/p>\n\n\n\n<p><strong># netload en0sp3<\/strong><\/p>\n\n\n\n<p>\n\nThat\u2019s all on Linux Network Traffic Monitoring tutorial.&nbsp;\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monitoring is one of the main task that anyone SystemAdmin or even a normal user should know about to get the best out of their systems\/servers &amp; avoid any issues. Bundles for a portion of the directions referenced here are accessible on EPEL store. The direction to introduce EPEL repo on your framework is referenced underneath. 1- Iftop command Iftop command provides real time monitoring of network bandwidth. It helps us measure the total data moving in &amp; out of the individual socket connections i.e. it captures packets moving in&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1014"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":3,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":1017,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1014\/revisions\/1017"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}