[rancid] Extreme switch login

Ryan Leung ryanleunghk at gmail.com
Thu Nov 28 08:02:12 UTC 2013


Here is the debug log.

===============================================
-sh-3.00$ /usr/local/rancid/bin/clogin -d -f /usr/local/rancid/.cloginrc
exswitch
exswitch
spawn telnet exswitch
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {5240}

expect: does "" (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
Trying 10.81.8.92...
Connected to exswitch (10.81.8.92).
Escape character is '^]'.

expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match
regular expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match
glob pattern "unknown host\r"? no

expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match
glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no

telnet session telnet0 on /dev/ptyb0


login:
expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n\r\ntelnet session
telnet0 on /dev/ptyb0\r\n\r\n\r\nlogin: " (spawn_id exp4) match regular
expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n\r\ntelnet session
telnet0 on /dev/ptyb0\r\n\r\n\r\nlogin: " (spawn_id exp4) match glob
pattern "unknown host\r"? no

expect: does "Trying 10.81.8.92...\r\r\nConnected to exswitch
(10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n\r\ntelnet session
telnet0 on /dev/ptyb0\r\n\r\n\r\nlogin: " (spawn_id exp4) match glob
pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "login:"
expect: set expect_out(1,string) "login"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Trying 10.81.8.92...\r\r\nConnected to
exswitch (10.81.8.92).\r\r\nEscape character is '^]'.\r\r\n\r\ntelnet
session telnet0 on /dev/ptyb0\r\n\r\n\r\nlogin:"
send: sending "admin\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
login:
expect: does " \r\u001b[Klogin: " (spawn_id exp4) match regular expression
"^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\u001b[Klogin: " (spawn_id exp4) match glob pattern
"unknown host\r"? no

expect: does " \r\u001b[Klogin: " (spawn_id exp4) match glob pattern "Host
is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "login:"
expect: set expect_out(1,string) "login"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " \r\u001b[Klogin:"
send: sending "admin\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
admin
password:
expect: does " admin\r\n\rpassword: " (spawn_id exp4) match regular
expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " admin\r\n\rpassword: " (spawn_id exp4) match glob pattern
"unknown host\r"? no

expect: does " admin\r\n\rpassword: " (spawn_id exp4) match glob pattern
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(1,string) "password"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " admin\r\n\rpassword:"
send: sending "pass01\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no


Login incorrect

login:
expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match regular expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match glob pattern "unknown host\r"? no

expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "login:"
expect: set expect_out(1,string) "login"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin:"
send: sending "admin\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
pass01

expect: does " pass01\r\n\r" (spawn_id exp4) match regular expression "^<-+
More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " pass01\r\n\r" (spawn_id exp4) match glob pattern "unknown
host\r"? no

expect: does " pass01\r\n\r" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
password:
expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match regular
expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match glob pattern
"unknown host\r"? no

expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match glob pattern
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(1,string) "password"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " pass01\r\n\rpassword:"
send: sending "pass01\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no


Login incorrect

login:
expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match regular expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match glob pattern "unknown host\r"? no

expect: does " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin: " (spawn_id exp4)
match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "login:"
expect: set expect_out(1,string) "login"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " \r\n\r\r\n\rLogin incorrect\r\n\r\nlogin:"
send: sending "admin\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
pass01

expect: does " pass01\r\n\r" (spawn_id exp4) match regular expression "^<-+
More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " pass01\r\n\r" (spawn_id exp4) match glob pattern "unknown
host\r"? no

expect: does " pass01\r\n\r" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
password:
expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match regular
expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match glob pattern
"unknown host\r"? no

expect: does " pass01\r\n\rpassword: " (spawn_id exp4) match glob pattern
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(1,string) "password"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " pass01\r\n\rpassword:"
send: sending "pass01\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"?
no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no


Login incorrect
Maximum number of login attempts reached!

expect: does " \r\n\r\r\n\rLogin incorrect\r\nMaximum number of login
attempts reached!\r\n" (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\n\r\r\n\rLogin incorrect\r\nMaximum number of login
attempts reached!\r\n" (spawn_id exp4) match glob pattern "unknown host\r"?
no

expect: does " \r\n\r\r\n\rLogin incorrect\r\nMaximum number of login
attempts reached!\r\n" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
Connection closed by foreign host.

expect: does " \r\n\r\r\n\rLogin incorrect\r\nMaximum number of login
attempts reached!\r\nConnection closed by foreign host.\r\r\n" (spawn_id
exp4) match regular expression "^<-+ More -+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? yes
expect: set expect_out(0,string) "Connection closed by"
expect: set expect_out(1,string) "Connection closed by"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " \r\n\r\r\n\rLogin incorrect\r\nMaximum
number of login attempts reached!\r\nConnection closed by"
spawn ssh -c 3des -x -l admin exswitch
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {5247}

expect: does "" (spawn_id exp4) match regular expression "^<-+ More
-+>[^\n\r]*"? no
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
"Offending key for .* \(yes/no\)\?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
expect: timed out

Error: TIMEOUT reached
===============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131128/542f9f1f/attachment.html>


More information about the Rancid-discuss mailing list