diff -ru rancid-2.3.8/bin/clogin.in rancid-2.3.8-zmousm/bin/clogin.in --- rancid-2.3.8/bin/clogin.in 2012-02-01 00:42:14.000000000 +0200 +++ rancid-2.3.8-zmousm/bin/clogin.in 2012-06-06 21:00:05.000000000 +0300 @@ -567,8 +567,22 @@ } exp_continue } - -re "$prompt" { + -indices -re "$prompt" { set prompt_match $expect_out(0,string); + if {"$prompt_match" == ">"} { + # Extreme XOS >= 12.5 by default sends a banner after login + # including this line: + # "Press the or '?' key at any time for completions." + # Match and discard it, as it is not a prompt. + if [string match "\r\nPress the " \ + [string range $expect_out(buffer) \ + [expr $expect_out(0,start) - 16] \ + $expect_out(0,start) \ + ] + ] { + exp_continue + } + } break; } "Login invalid" {