We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f6fa30 commit a75ca19Copy full SHA for a75ca19
dell-switch.pl
@@ -130,7 +130,7 @@ sub save_log {
130
$buff = '';
131
}
132
133
- warn "# commands_while = ",dump( \@commands_while );
+ #warn "# commands_while = ",dump( \@commands_while );
134
135
} elsif ( $buff =~ s{More: <space>, Quit: q.*One line: <return>\s*}{} ) {
136
send_pty " ";
@@ -151,6 +151,10 @@ sub save_log {
151
warn "\nRELOAD detected\n";
152
sleep 0.5;
153
send_pty 'y';
154
+ } elsif ( $buff =~ s{\QAre you sure you want to save? (y/n)\E}{}s ) { # copy running-config startup-config
155
+ warn "\nCOPY detected\n";
156
+ sleep 0.5;
157
+ send_pty 'y';
158
} elsif ( $buff =~ m{MikroTik RouterOS} ) {
159
warn "\nERROR: don't know how to talk to MicroTik - ABORTING";
160
exit 0;
0 commit comments