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 192.168.100.1 is used. The host may be given as IP address or as a host name.
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 http://broadband.motorola.com/consumers/products/sb4200/default.asp 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 http://www.net-snmp.org.
reads information from host cable.me.home and displays the statistics until you press CTRL-C.
Dr. Jürgen Vollmer <email@example.com> 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