X-Git-Url: http://git.rot13.org/?p=dell-switch;a=blobdiff_plain;f=dell-switch.pl;h=82debdaedb3074ce69bf4d348cc57e321b2edb5e;hp=a88b71b4a4b57bf60bcfefefc239580a15b76593;hb=HEAD;hpb=f744fba55058bcdab5e463be4293c98273a7d74e diff --git a/dell-switch.pl b/dell-switch.pl index a88b71b..485d29c 100755 --- 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;