Subject: nightly report "network" section.
To: None <tech-userlevel@netbsd.org>
From: Perry E.Metzger <perry@piermont.com>
List: tech-userlevel
Date: 12/07/2003 11:09:24
Right now, the nightly report spits out something wildly useless like
this about networks, i.e. a nestat -inv:

network:
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
ex0*  1500  <Link>        00:00:86:43:d8:da        0     0        0     0     0
lo0   33196 <Link>                              1948     0     1948     0     0
lo0   33196 127/8         127.0.0.1             1948     0     1948     0     0
lo0   33196 ::1/128       ::1                   1948     0     1948     0     0
lo0   33196 fe80::%lo0/64 fe80::1%lo0           1948     0     1948     0     0
ppp0* 1500  <Link>                                 0     0        0     0     0
ppp1* 1500  <Link>                                 0     0        0     0     0
wi0   1500  <Link>        00:02:2d:0c:11:36   544059     0   358830   115  5275
wi0   1500  fe80::%wi0/64 fe80::202:2dff:fe0c:1136%wi0   544059     0   358830   115  5275
wi0   1500  166.84.151.64/28 166.84.151.67       544059     0   358830   115  5275
wi0   1500  3ffe:1ce1:0:fe10::/64 3ffe:1ce1:0:fe10:202:2dff:fe0c:1136   544059     0   358830   115  5275

Would anyone mind if I replaced that with
netstat -in | cut -c 1-6,44-80 | fgrep -v "*" | uniq
which would produce this far more elegant and IMHO far more useful report?:

network:
Name      Ipkts Ierrs    Opkts Oerrs Colls
lo0        1948     0     1948     0     0
wi0      544786     0   359623   115  5279



-- 
Perry E. Metzger		perry@piermont.com