russischer Abakus Informatik-Vollmer

Manual Page of cable-stats


cable-stats - Collect transfer statistics from a Motorola TV-Cable Modem


cable-stats [-h] [-c community] [-i interval] [-p count] [host]


If no host is given the host with the IP address is used. The host may be given as IP address or as a host name.

-c community
--community community
Specify a community, default: public.
-i seconds
--interval seconds
Poll all seconds the network device, default 1. As values for seconds a floating number is accepted.
-p count
--polls counts
Get the information count time from the device and then stop. Default: infinite, until you press CTRL-C.
Print a brief help message and exits.
Prints the manual page and exits.


This script uses the SNMP (simple network monitor protocol) to read the number transfered bytes from a Motorola TV-Cabel modem. My model is a Motorola Surfboard SBV 4200E. See also May be for others this script works as well.

After starting the script, it polls the network device using the snmpget command and displays the uploaded and downloaded traffic, until you stop it by pressing CTR-C


You need the net-snmp program suite see



reads information from host and displays the statistics until you press CTRL-C.


Dr. Jürgen Vollmer <> If you find this software useful, I would be glad to receive a postcard from you, showing the place where you're living.



Copyright (C) 2004 Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Dr. Jürgen Vollmer (
Diese Seite wurde am 13. Juli 2005 aktualisiert