Device::CableModem::Motorola::SB4200 - Interface to Motorola SurfBoard 4200 Cable Modem
use Device::CableModem::Motorola::SB4200; my $m = Device::CableModem::Motorola::SB4200->new(%opts); my %version = $m->versions; my %status = $m->status; my %signal = $m->signal; my %addr = $m->addresses; my %config = $m->config; my @logs = $m->logs; $m->restart; $m->reset; my $fw = $version{software}; printf "Firmware version is %s-%s\n", $fw->{version}, $fw->{string}; die "Unknown device disguised as SB4200" if $fw->{model} ne 'SB4200';
This document describes version 0.11 of Device::CableModem::Motorola::SB4200 released on 27 August 2012.
0.11
Device::CableModem::Motorola::SB4200
27 August 2012
This module can be used to manage/fetch every setting available via the modem's web interface. It is also possible to restart/reset the modem.
All methods will die upon failure.
Contructor. Accepts named parameters listed below.
Highly unlikely, but if the ip address of SB4200 is not 192.168.100.1, then you can set the ip address with this parameter.
192.168.100.1
Returns a LWP::UserAgent object.
LWP::UserAgent
Use Data::Dumper to see the outputs of these methods.
Provides information about the servers the Cable Modem is using, and the computers to which it is connected.
Provides information about the manually configurable settings of the Cable Modem.
Returns a list of available modem logs.
Provides information about the current upstream and downstream signal status of the Cable Modem.
Provides information about the startup process of the Cable Modem.
Returns a list of hardware/software versions available in the modem.
From the modem page:
Resetting the cable modem to its factory default configuration will remove all stored parameters learned by the cable modem during prior initializations. The process to get back online from a factory default condition could take from 5 to 30 minutes. Please reference the cable modem User Guide for details on the power up sequence.
Restarts the modem. Usually takes 10 seconds.
Can be used to alter every setting available via "config".
$m->set_config( FREQ_PLAN => "EUROPE" ); $m->set_config( FREQUENCY_MHZ => 543000001 );
Device::CableModem::SURFboard.
Burak Gursoy <burak@cpan.org>.
Copyright 2009 - 2012 Burak Gursoy. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.
To install Device::CableModem::Motorola::SB4200, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::CableModem::Motorola::SB4200
CPAN shell
perl -MCPAN -e shell install Device::CableModem::Motorola::SB4200
For more information on module installation, please visit the detailed CPAN module installation guide.