diff options
author | phk <phk@FreeBSD.org> | 2003-01-04 22:07:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-04 22:07:24 +0000 |
commit | fdbb382f1cbb42ab486d1f7812f0f78c0317b799 (patch) | |
tree | 5e9c2b34c41b9ea1f013d008a54a312bd6abf5ff /usr.bin/systat/cmdtab.c | |
parent | 4a03bcc47da1950a8d976e9bc194f23717c1075f (diff) | |
download | FreeBSD-src-fdbb382f1cbb42ab486d1f7812f0f78c0317b799.zip FreeBSD-src-fdbb382f1cbb42ab486d1f7812f0f78c0317b799.tar.gz |
Add "ifstat" display:
ifstat Display the network traffic going through active interfaces
on the system. Idle interfaces will not be displayed until
they receive some traffic.
For each interface being displayed, the current, peak and
total statistics are displayed for incoming and outgoing
traffic. By default, the ifstat display will automatically
scale the units being used so that they are in a human-read-
able format. The scaling units used for the current and peak
traffic columns can be altered by the scale command.
Submitted by: Trent Nelson <trent@arpa.com>
Diffstat (limited to 'usr.bin/systat/cmdtab.c')
-rw-r--r-- | usr.bin/systat/cmdtab.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/systat/cmdtab.c b/usr.bin/systat/cmdtab.c index 63685e0..bb17455 100644 --- a/usr.bin/systat/cmdtab.c +++ b/usr.bin/systat/cmdtab.c @@ -71,6 +71,9 @@ struct cmdtab cmdtab[] = { { "tcp", showtcp, fetchtcp, labeltcp, inittcp, opentcp, closetcp, cmdmode, resettcp, 0 }, + { "ifstat", showifstat, fetchifstat, labelifstat, + initifstat, openifstat, closeifstat, cmdifstat, + 0, CF_LOADAV }, { NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0 } }; struct cmdtab *curcmd = &cmdtab[0]; |