7 my ( $self, $ip ) = @_;
9 my $t = Net::Telnet->new( Timeout => 10, Prompt => '/#/' );
11 $t->dump_log('/tmp/log') if $ENV{DEBUG};
16 $t->waitfor('/Login:/');
18 $t->waitfor('/Password:/');
22 $t->waitfor('/Please input password:/');
33 my ( $self, $out ) = @_;
36 foreach my $line ( split(/[\n\r]+/, $out) ) {
37 warn "# $line\n" if $ENV{DEBUG};
38 if ( $line =~ m/^(\S+.*?)\s*:\s+(\S+.*)$/ ) {
42 warn "## $n = $v\n" if $ENV{DEBUG};
51 'show interface %s' => [ qw(
56 'show adsl status %s' => [ qw(
59 'show adsl physical %s' => [ qw(