X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=dell-switch.pl;fp=dell-switch.pl;h=6ca957ba0c8532441007ddaeaf6105138ee701a9;hb=8656829ea0b6304fe634926be2f54535eb0c9cfd;hp=3c990c84fcb9d64ffb030d349d88d853edfd3eda;hpb=8bfaccdaf82dadaeaa106a47746b3881c9b7fd42;p=dell-switch diff --git a/dell-switch.pl b/dell-switch.pl index 3c990c8..6ca957b 100755 --- 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 -