March 04, 2004

trafshow

A utility that displays in some graphical way (on a text screen anyway) the current traffic on an interface card. I'm going to give this a try, as apachetop just crashes on me.

Port description for net/trafshow


del.icio.us | Digg it | Furl | Yahoo MyWeb | Create Social Bookmark Links


Posted by jdarnold at 12:26 PM | TrackBack
Comments

What I find handy is to have a screen - http://www.gnu.org/software/screen/screen.html - session running and keep trafshow open all the time there. That way when you want to check traffic quicly, just resume the screen session and you're away.

Gist is:

- install screen from /usr/ports/misc/screen (I couldn't remember where this was so I used the very handy 'portsearch' tool: portsearch -n screen - check it out in /usr/ports/Tools/scripts/portsearch)

- start screen logged in as root

- create a new screen using 'ctrl-a c', start trafshow up in there... do same for any other stuff you want like 'top', any daemons you want to monitor in foreground mode, etc etc

Now you can do 'ctrl-a d' to 'detach' from screen whilst leaving trafshow running, logout of the ssh session or whatever, then when you want to check traffic at a later date after logging back in - whether on a local console or via ssh - just enter 'screen -d -r' to reattach to the screen session and bingo, you have your trafshow screen. Use 'ctrl-a a' to zip through all the different screens you have open in the current session (to get to your 'top' or other daemons you're monitoring etc).

:P

There's a handy screen tutorial I noticed on kuroshin here the other day:

http://www.kuro5hin.org/story/2004/3/9/16838/14935


Like your blog btw - very similar to mine :P

Posted by: Jez on March 17, 2004 01:20 PM

Post a comment

(Javascript required)

(Not published)

Comments: (you may use HTML tags for style)