projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1f48f
)
config interface needs / in prompt
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 8 Aug 2022 11:07:29 +0000
(13:07 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 8 Aug 2022 11:07:29 +0000
(13:07 +0200)
dell-switch.pl
patch
|
blob
|
history
diff --git
a/dell-switch.pl
b/dell-switch.pl
index
a88b71b
..
485d29c
100755
(executable)
--- a/
dell-switch.pl
+++ b/
dell-switch.pl
@@
-99,7
+99,8
@@
while() {
} elsif ( $buff =~ m/Password:/ ) {
send_pty "$passwd\n";
$buff = '';
- } elsif ( $buff =~ m/[\n\r\b]([\w\-\(\)]+)#\s*$/ ) {
+ } elsif ( $buff =~ m/[\n\r\b]([\w\-\(\)\/]+)#\s*$/ ) {
+ # config interface needs / in prompt
my $hostname = $1;
if ( $buff ) {
save_log $ip, $hostname, $command, $buff;