projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bfaccd
)
remove empty last command
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 3 Apr 2022 19:45:56 +0000
(21:45 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 3 Apr 2022 19:45:56 +0000
(21:45 +0200)
dell-switch.pl
patch
|
blob
|
history
diff --git
a/dell-switch.pl
b/dell-switch.pl
index
3c990c8
..
6ca957b
100755
(executable)
--- a/
dell-switch.pl
+++ b/
dell-switch.pl
@@
-99,7
+99,7
@@
while() {
} elsif ( $buff =~ m/Password:/ ) {
send_pty "$passwd\n";
$buff = '';
- } elsif ( $buff =~ m/[\n\r
]([\w\-\(\)]+)#
$/ ) {
+ } elsif ( $buff =~ m/[\n\r
\b]([\w\-\(\)]+)#\s*
$/ ) {
my $hostname = $1;
if ( $buff ) {
save_log $ip, $hostname, $command, $buff;
@@
-146,4
+146,3
@@
show vlan
show running-config
show bridge address
show interfaces status
-