Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Blogs
User Name



Network usage on a single device and log diving

Posted 09-27-2011 at 02:57 PM by sag47
Updated 09-29-2011 at 08:30 AM by sag47
Tags networking

I wanted to know the received network usage on a device in kB so this one liner was produced for the desired result.
while true; do y=`ifconfig eth0 | grep RX\ bytes| sed -e 's/.*bytes\://' -e 's/\ .*//'`; sleep 1; x=`ifconfig eth0 | grep RX\ bytes| sed -e 's/.*bytes\://' -e 's/\ .*//'`; echo $(((x-y)/1024)); done
Press Ctrl+C to stop analyzing the network traffic on that device.

Here's another one liner of me looking through multiple log locations.
Senior Member
Posted in Uncategorized
Views 741 Comments 0 sag47 is offline

"File exists" - yeah duh...

Posted 09-27-2011 at 03:29 AM by ButterflyMelissa

Okay, so, using the prefix did'nt really work for binutils...upon the install, the installer comes back with "file exists", yea sure...

I tried to move the make to ram (in the ramfs) but the unpack sent the box into the mud...

Gave up for the day, got other stuff to fry now...
Senior Member
Posted in Uncategorized
Views 447 Comments 0 ButterflyMelissa is offline

Looking for the way in...

Posted 09-27-2011 at 02:39 AM by ButterflyMelissa

Hmm, it's been some time since last post, all because I dont really know what to configure/make/install first. I went for binutils because that's where LFS kicks off, but get compile errors...

nothing to do for all

...fair enough...maybe I did'nt use the right version. I used 2.14 for this. At the time of writing, the configure is working for 2.21.1 and I'm not in a positive mood about this. The thing is that the configure does end nicely, leaving a makefile behind...
Senior Member
Posted in Uncategorized
Views 9860 Comments 2 ButterflyMelissa is offline


Posted 09-24-2011 at 03:19 PM by rich_c

I've been playing around with namebench since reading a post about it on the Mepis community forums. A nifty tool! One thing I discovered that annoyed me slightly though, is that my home router (BT Home Hub) will not allow me to change it's default DNS servers. So, if I want to use the faster servers namebench identified I've got to configure on a per machine basis for everything on my home network... :-/ Oh well.
Posted in Uncategorized
Views 483 Comments 0 rich_c is offline

nothing to rant about

Posted 09-22-2011 at 11:52 AM by galen

Posted in Uncategorized
Views 452 Comments 0 galen is offline


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration