cnwctl(8) [netbsd man page]
CNWCTL(8) BSD System Manager's Manual CNWCTL(8) NAME
cnwctl -- display statistics and control Netwave AirSurfer PC Cards SYNOPSIS
cnwctl [-d domain] [-i interface] [-k scramble-key] [-sS [rate]] DESCRIPTION
The cnwctl utility is used to control Netwave AirSurfer PC Cards as well as display statistics. The following options are available: -d Set the domain of the card to domain. The domain must be between 0x000 and 0x1ff. The domains 0x000 through 0x0ff are for access to an add-hoc network. The domains 0x100 through 0x1ff are for access to a Netwave Access Point. The default domain is 0x000. A card may only talk to the access point in its domain, or other cards in its add-hoc domain. -i Use interface as the interface rather than cnw0. -k Set the scramble key to scramble-key. The scramble key must be between 0x0000 and 0xffff. Both the source and the destination must use the same scramble key in order to communicate. -s Display statistics. When the optional argument rate (which must be the last argument to the end of the command line) is specified as a non-zero value, statistics will be displayed every rate seconds. At the top of each ``page'' of statistics, column labels will be displayed. The first row of statistics will be totals since boot, subsequent lines are deltas from the previous row. If rate is not specified, or is 0 (zero), a single page of statistics will be displayed. These statistics are more detailed and include: domain The domain this card is part of. rx Number of packets received. rxoverflow Number of overflows detected. rxoverrun Number of overruns detected. rxcrcerror Number of CRC errors detected. Random noise can cause these errors. rxframe Number of framing errors detected. rxerrors Number of generic errors detected. rxavail Number of times a packet was available. tx Number of packets requested to be sent. txokay Number of packets sent. txabort Number of packets aborted (not sent within 9 tries). txlostcd Number of times carrier detect was lost. txerrors Number of generic transmit errors detected. txretries Total number of retries. Nx retries Number of packets which were retried N times. -S Display status read from the hardware. This option is only available to the super user. The rate argument is used as with the -s option. The following fields are displayed link integrity field (lif) A 0 value implies no links. connection quality (cq) Probably indicates the quality of the connection to the access point. spu Unknown meaning. link quality (lq) Probably indicated the quality of the link to the access point. hhc Unknown meaning. mhs Unknown meaning. revision The revision numbers of the card. id The ID of the card. SEE ALSO
cnw(4) BSD
January 5, 1997 BSD
Check Out this Related Man Page
Sys::Statistics::Linux::NetStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::NetStats(3pm) NAME
Sys::Statistics::Linux::NetStats - Collect linux net statistics. SYNOPSIS
use Sys::Statistics::Linux::NetStats; my $lxs = Sys::Statistics::Linux::NetStats->new; $lxs->init; sleep 1; my $stat = $lxs->get; Or my $lxs = Sys::Statistics::Linux::NetStats->new(initfile => $file); $lxs->init; my $stat = $lxs->get; DESCRIPTION
Sys::Statistics::Linux::NetStats gathers net statistics from the virtual /proc filesystem (procfs). For more information read the documentation of the front-end module Sys::Statistics::Linux. NET STATISTICS
Generated by /proc/net/dev. rxbyt - Number of bytes received per second. rxpcks - Number of packets received per second. rxerrs - Number of errors that happend while received packets per second. rxdrop - Number of packets that were dropped per second. rxfifo - Number of FIFO overruns that happend on received packets per second. rxframe - Number of carrier errors that happend on received packets per second. rxcompr - Number of compressed packets received per second. rxmulti - Number of multicast packets received per second. txbyt - Number of bytes transmitted per second. txpcks - Number of packets transmitted per second. txerrs - Number of errors that happend while transmitting packets per second. txdrop - Number of packets that were dropped per second. txfifo - Number of FIFO overruns that happend on transmitted packets per second. txcolls - Number of collisions that were detected per second. txcarr - Number of carrier errors that happend on transmitted packets per second. txcompr - Number of compressed packets transmitted per second. ttpcks - Number of total packets (received + transmitted) per second. ttbyt - Number of total bytes (received + transmitted) per second. METHODS
new() Call "new()" to create a new object. my $lxs = Sys::Statistics::Linux::NetStats->new; Maybe you want to store/load the initial statistics to/from a file: my $lxs = Sys::Statistics::Linux::NetStats->new(initfile => '/tmp/netstats.yml'); If you set "initfile" it's not necessary to call sleep before "get()". It's also possible to set the path to the proc filesystem. Sys::Statistics::Linux::NetStats->new( files => { # This is the default path => '/proc', netdev => 'net/dev', } ); init() Call "init()" to initialize the statistics. $lxs->init; get() Call "get()" to get the statistics. "get()" returns the statistics as a hash reference. my $stat = $lxs->get; raw() The same as get_raw() but it's not necessary to call init() first. get_raw() Call "get_raw()" to get the raw data - no deltas. EXPORTS
No exports. SEE ALSO
proc(5) REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>. AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>. COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-09 Sys::Statistics::Linux::NetStats(3pm)