[SDBUG] Interface statistics on OpenBSD ?
Ben Lovett
ben at tilderoot.com
Sun Jul 6 21:53:10 PDT 2008
On Jun 22, 2008, at 1:56 PM, Michael J McCafferty wrote:
> In Linux and ifconfig will show RX and TX packets, bytes, errors,
> dropped, overruns, collisions and others.. can I get this same data
> from
> an interface in OpenBSD ?
from netstat(1):
-i Show the state of interfaces which have been auto-
configured (in-
terfaces statically configured into a system but not
located at
boot-time are not shown).
If the -a option is also present, multicast addresses
currently
in use are shown for each Ethernet interface and for
each IP in-
terface address. Multicast addresses are shown on
separate lines
following the interface address with which they are
associated.
If the -f address_family option (with the -s option) is
present,
show per-interface statistics on all interfaces for the
specified
address_family.
You might also be interested in the -I flag for interface specific
details.
> Is there a way to get unicast, broadcast, multicast stats from an
> interface on an OpenBSD system with PF ?
-s Show per-protocol statistics. If this option is
repeated, coun-
ters with a value of zero are suppressed.
man is your friend.. :)
Ben
More information about the SDBUG
mailing list