return $telnet->{$ip} = $t;
}
-sub command {
+sub command_out {
my ($self,$command) = @_;
my $t = $self->telnet;
warn "## out = [$out]" if $ENV{DEBUG};
+ return $out;
+}
+
+sub command {
+ my ($self,$command) = @_;
+ my $out = $self->command_out( $command );
my $hash = $self->parse( $out );
warn "## ", $self->ip, " $command ",dump $hash;
copy ref $commands->{$command} eq 'ARRAY' ? @{$commands->{$command}} : undef;
}
+ if ( $self->can('custom') ) {
+ $hash = $self->custom( $port );
+ copy keys %$hash;
+ }
+
warn "# row = ",dump $row if $ENV{DEBUG};
$row = $self->fixup_row( $row ) if $self->can('fixup_row');