{"id":181,"date":"2008-03-20T09:40:23","date_gmt":"2008-03-20T14:40:23","guid":{"rendered":"http:\/\/bitpost.com\/news\/2008\/03\/20\/iptraf-uses-66-kbps\/"},"modified":"2011-04-06T19:25:26","modified_gmt":"2011-04-07T00:25:26","slug":"iptraf-uses-66-kbps","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2008\/iptraf-uses-66-kbps\/","title":{"rendered":"iptraf uses 6.6 kbps"},"content":{"rendered":"<p>iptraf is great to quickly monitor network usage.  Just don&#8217;t forget Heisenberg&#8217;s uncertainty principle (or, to be more technically correct, the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Observer_effect\">observer effect<\/a>) &#8211; using iptraf over a proxied ssh connection adds about 6.6 kbps of usage just for the tool used to measure usage.  Fun fun! :><\/p>\n<p>Here&#8217;s a script that you can run to measure bandwidth in the background, removing some of the overhead of trying to visually display in realtime the very thing you&#8217;re measuring:<\/p>\n<pre><code>#!\/bin\/bash\r\n\r\nif [ -e \/var\/log\/iptraf\/bandwidth.txt ]\r\nthen\r\n    rm \/var\/log\/iptraf\/bandwidth.txt\r\nfi\r\n\r\nexport SAMPLETIME=1\r\nexport SLEEPTIME=62\r\niptraf -B -t $SAMPLETIME -i all -d eth0 -L bandwidth.txt\r\nsleep $SLEEPTIME\r\ncat \/var\/log\/iptraf\/bandwidth.txt|grep kbits<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>iptraf is great to quickly monitor network usage. Just don&#8217;t forget Heisenberg&#8217;s uncertainty principle (or, to be more technically correct, the observer effect) &#8211; using iptraf over a proxied ssh connection adds about 6.6 kbps of usage just for the tool used to measure usage. Fun fun! :> Here&#8217;s a script that you can run [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10,2],"tags":[94],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","category-chatter","tag-iptraf"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-2V","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":1,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/181\/revisions\/1164"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}