File: ayers2.html

package info (click to toggle)
lg-issue41 3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,732 kB
  • ctags: 156
  • sloc: makefile: 34; sh: 34; ansic: 8
file content (103 lines) | stat: -rw-r--r-- 3,991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!--startcut ==========================================================-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<title>A Visual Packet Monitor LG #41</title>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!--endcut ============================================================-->

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<H1><font color="maroon">A Visual Packet Monitor</font></H1>
<h4>By <a href="mailto: layers@marktwain.net">Larry Ayers</a></h4>
</center>
<P> <HR> <P>  

<center><H3><font color="maroon">Introduction</font></h3></center>
<p>For the past few years I've used internal modems, but I still miss the
flickering lights on the first modem I ever used, an external unit which
seemed fast at the time.  One of these lights indicated incoming data-packets
while another showed the outgoing.  The advantages of these inobtrusive
lights were that they didn't occupy screen real-estate and they could be monitored
with peripheral vision.

<p>Recently Matthew Bevan released a new version of NetLED, a small utility
which monitors any of several interfaces such as PPP, SLIP, or ethernet using
the keyboard's light emitting diodes (LEDs).  This is a great idea, since
these LEDs aren't particularly useful in their native state.   I've never had 
any use for the Caps Lock key, or its LED; I like to have that key generate
the Escape key key-code (easing VI mode-switching), which leaves its LED open
for alternate uses such as NetLED.

<p>NetLED is a tiny program (meant to be run as a daemon) which can be left
running even when a network interface is inactive.  The command syntax is
simple:<br>

<p><kbd>netled [console] [interface]</kbd><br>

<p>As an example, I use it to monitor activity on a dial-in PPP
connection:<br>

<p><kbd>netled console ppp0</kbd><br>

<p>The <b>console</b> parameter, if just &quot;console&quot; is specified,
allows the LEDs to flash on all consoles, while <b>ppp0</b> tells the program
to monitor the first PPP device.  Substitute <b>eth0</b> in order to monitor
the first ethernet device.

<p>A strongly worded warning in the README file encourages the user to follow
the recommended syntax:<br>

<pre>
     NOTE: DO NOT PREPEND /DEV/ TO ANY OF THE DEVICES!!!
     I MOCK ANYONE WHO ASKS ME HOW TO FIX THEIR COMPUTER
     WHEN THEY ARE DOING THIS!

     PROPER: netled console lo
     NOT: netled /dev/console /dev/loop0
</pre>

<p>I'm curious as to the nature of the dire consequences implied by this
warning, but not curious enough to try it!

<p>NetLED can be started manually (I've aliased&nbsp; <kbd>'netled console ppp0'</kbd> 
&nbsp;to &nbsp;<kbd>'led'</kbd>) or it could be started in either an init script or as an
addition to a PPP start-up script.

<p>If you would like to try it out, the source code can be obtained from this
WWW <a href="http://mars.ark.com/~mbevan/netled/">site</a>:

<p>http://mars.ark.com/~mbevan/netled/.

<hr>
<!-- hhmts start -->
Last modified: Sat May  1 12:15:07 CDT 1999
<!-- hhmts end -->

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1999, Larry Ayers <BR> 
Published in Issue 41 of <i>Linux Gazette</i>, May 1999</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./ayers1.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./weaver.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 
<!--startcut ==========================================================-->
</BODY>
</HTML>
<!--endcut ============================================================-->