Mailing List Archive

FXOS debugging
Hello,

I've attempted to login via fxrancid, but I'm not entirely sure where it's failing. Here is the debug when trying to run one command with fxrancid -d <device_name>

> spawn id exp0 sent <show model\r>
spawn id exp5 sent <show>
showspawn id exp5 sent < model>
modelspawn id exp5 sent <\r\n>

spawn id exp5 sent <Cisco Firepower 2130 Threat Defense\r\n>
Cisco Firepower 2130 Threat Defense
spawn id exp5 sent <\r\n>

spawn id exp5 sent <> >
>

And here it fails when trying to run the same command but with a command fxlogin -d -c 'show model' <device_name>

expect: does "> " (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) ">"
expect: set expect_out(1,string) ""
expect: set expect_out(2,string) ">"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) ">"
send: sending "show model\r" to { exp5 }
invalid command name "^-"
while executing
"^-"
invoked from within
"expect {
-re "\b+" { exp_continue }
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprom..."
(procedure "run_commands" line 36)
invoked from within
"run_commands $prompt $command"
("foreach" body line 206)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/usr/local/rancid/bin/fxlogin" line 870)


Thanks,

-ryan
Re: FXOS debugging [ In reply to ]
Tue, Nov 27, 2018 at 03:55:46PM +0000, Ryan West:
> Hello,
>
> I've attempted to login via fxrancid, but I'm not entirely sure where it's failing. Here is the debug when trying to run one command with fxrancid -d <device_name>
>
> And here it fails when trying to run the same command but with a command fxlogin -d -c 'show model' <device_name>

you have to include the information that preceeded this and i need to see
the complete and unaltered prompt.

> expect: does "> " (spawn_id exp5) match glob pattern "Login failed"? no
> "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
> "Press any key to continue"? no
> "Enter Selection: "? Gate "Enter Selection: "? gate=no
> "Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
> "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
> "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
> "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
> "^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=yes
> expect: set expect_out(0,string) ">"
> expect: set expect_out(1,string) ""
> expect: set expect_out(2,string) ">"
> expect: set expect_out(spawn_id) "exp5"
> expect: set expect_out(buffer) ">"
> send: sending "show model\r" to { exp5 }
> invalid command name "^-"
> while executing
> "^-"
> invoked from within
> "expect {
> -re "\b+" { exp_continue }
> -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
> }
> -re "^\[^\n\r]*$reprom..."
> (procedure "run_commands" line 36)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 206)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> # attempt at platform switching.
> set platform ""
> send_user ..."
> (file "/usr/local/rancid/bin/fxlogin" line 870)

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
I lost the ability to reply inline easily, but here it is.

rancid@netman:~$ fxlogin -d -c 'show model' custname-den-fw1
custname-den-fw1
spawn ssh -c 3des-cbc,aes128-cbc,aes256-cbc,aes256-ctr -x -l admin custname-den-fw1
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {2858}
Gate keeper glob pattern for '^<-+ More -+>[^
]*' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '(Connection refused|Secure connection [^
]+ refused)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '(Connection closed by|Connection to [^
]+ closed)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED' is 'HOST IDENTIFICATION HAS CHANGED'. Activating booster.
Gate keeper glob pattern for 'Offending key for ' is 'Offending key for '. Activating booster.
Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. Activating booster.
Gate keeper glob pattern for '(denied|Sorry)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for 'last login:' is 'last login:'. Activating booster.
Gate keeper glob pattern for 'failed login:' is 'failed login:'. Activating booster.
Gate keeper glob pattern for '% (Bad passwords|Authentication failed)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for 'Enter Selection: ' is 'Enter Selection: '. Activating booster.
Gate keeper glob pattern for 'Press the <tab> key [^
]+[
]+' is 'Press the <tab> key *'. Activating booster.
Gate keeper glob pattern for '@[^
]+ ([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster.
Gate keeper glob pattern for '([Uu]sername|Login|login|user name|User):' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^([^ >]*)(>|#)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '[^
]*[
]+' is ''. Not usable, disabling the performance booster.

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
admin@custname-den-fw1's password:
expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "admin@custname-den-fw1's password: " (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "@custname-den-fw1's password:"
expect: set expect_out(1,string) "password"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "admin@custname-den-fw1's password:"
send: sending "hipassword\r" to { exp5 }
expect: continuing expect

expect: does " " (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does " " (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does " " (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does " " (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does " " (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does " " (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no


expect: does " \r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does " \r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does " \r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does " \r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does " \r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does " \r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " \r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) " \r\n"
expect: continuing expect

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Last login: Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=yes re=yes
expect: set expect_out(0,string) "Last login:"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Last login:"
expect: continuing expect

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) " Tue Nov 27 16:26:21 UTC 2018 from 205.177.112.120 on pts/0\r\n"
expect: continuing expect

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
Successful login attempts for user 'admin' : 11


expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "Successful login attempts for user 'admin' : 11\r\n\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Successful login attempts for user 'admin' : 11\r\n\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Successful login attempts for user 'admin' : 11\r\n\r\n"
expect: continuing expect

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved.
Cisco is a registered trademark of Cisco Systems, Inc.
All other trademarks are property of their respective owners.

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\nCisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Copyright 2004-2017, Cisco and/or its affiliates. All rights reserved. \r\n"
expect: continuing expect

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "Cisco is a registered trademark of Cisco Systems, Inc. \r\nAll other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Cisco is a registered trademark of Cisco Systems, Inc. \r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Cisco is a registered trademark of Cisco Systems, Inc. \r\n"
expect: continuing expect

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "All other trademarks are property of their respective owners.\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "All other trademarks are property of their respective owners.\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "All other trademarks are property of their respective owners.\r\n"
expect: continuing expect

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no

Cisco Fire Linux OS v6.2.2 (build 11)
Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)


expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "\r\nCisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "\r\n"
expect: continuing expect

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "Cisco Fire Linux OS v6.2.2 (build 11)\r\nCisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Cisco Fire Linux OS v6.2.2 (build 11)\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Cisco Fire Linux OS v6.2.2 (build 11)\r\n"
expect: continuing expect

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "unknown host\r"? no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "Cisco Firepower 2130 Threat Defense v6.2.2 (build 81)\r\n\r\n"
expect: continuing expect

expect: does "" (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "" (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "" (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "" (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "" (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "" (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=no
"Login invalid"? no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
>
expect: does "> " (spawn_id exp5) match regular expression "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no
"(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no
"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no

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

expect: does "> " (spawn_id exp5) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no
"Offending key for "? Gate "Offending key for "? gate=no

expect: does "> " (spawn_id exp5) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

expect: does "> " (spawn_id exp5) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no

expect: does "> " (spawn_id exp5) match regular expression "last login:"? Gate "last login:"? gate=no
"failed login:"? Gate "failed login:"? gate=no

expect: does "> " (spawn_id exp5) match glob pattern "Login failed"? no
"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no
"Press any key to continue"? no
"Enter Selection: "? Gate "Enter Selection: "? gate=no
"Press the <tab> key [^\r\n]+[\r\n]+"? Gate "Press the <tab> key *"? gate=no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no
"^([^ >]*)(>|#)"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) ">"
expect: set expect_out(1,string) ""
expect: set expect_out(2,string) ">"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) ">"
send: sending "show model\r" to { exp5 }
invalid command name "^-"
while executing
"^-"
invoked from within
"expect {
-re "\b+" { exp_continue }
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprom..."
(procedure "run_commands" line 36)
invoked from within
"run_commands $prompt $command"
("foreach" body line 206)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/usr/local/rancid/bin/fxlogin" line 870)

Thanks,

-ryan

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
Tue, Nov 27, 2018 at 04:34:22PM +0000, Ryan West:
> send: sending "show model\r" to { exp5 }
> invalid command name "^-"
> while executing
> "^-"
> invoked from within
> "expect {
> -re "\b+" { exp_continue }
> -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
> }
> -re "^\[^\n\r]*$reprom..."
> (procedure "run_commands" line 36)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 206)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> # attempt at platform switching.
> set platform ""
> send_user ..."
> (file "/usr/local/rancid/bin/fxlogin" line 870)

hmm, i suspect this is a tcl bug. are you perhaps using some crusty
Centos with an old tcl? you could try changing:

-re "^\[^-]*--More--\[^\r\n]*\[\r\n]+" { # fxos FTP pager

to

-re -- "^\[^-]*--More--\[^\r\n]*\[\r\n]+" { # fxos FTP pager

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
Same error -

Here is the list of installed TCL packages:

libtcl8.5:amd64
libtcl8.6:amd64
tcl
tcl-expect:amd64
tcl8.5
tcl8.6

On a 9.6 Debian version. It's just this script that this throwing errors as well.

Thanks,

-ryan

-----Original Message-----
From: heasley <heas@shrubbery.net>
Sent: Wednesday, November 28, 2018 1:55 AM
To: Ryan West <rwest@zyedge.com>
Cc: Rancid-discuss@shrubbery.net
Subject: Re: [rancid] FXOS debugging

Tue, Nov 27, 2018 at 04:34:22PM +0000, Ryan West:
> send: sending "show model\r" to { exp5 } invalid command name "^-"
> while executing
> "^-"
> invoked from within
> "expect {
> -re "\b+" { exp_continue }
> -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
> }
> -re "^\[^\n\r]*$reprom..."
> (procedure "run_commands" line 36)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 206)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> # attempt at platform switching.
> set platform ""
> send_user ..."
> (file "/usr/local/rancid/bin/fxlogin" line 870)

hmm, i suspect this is a tcl bug. are you perhaps using some crusty Centos with an old tcl? you could try changing:

-re "^\[^-]*--More--\[^\r\n]*\[\r\n]+" { # fxos FTP pager

to

-re -- "^\[^-]*--More--\[^\r\n]*\[\r\n]+" { # fxos FTP pager

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
Wed, Nov 28, 2018 at 04:09:40PM +0000, Ryan West:
> Same error -
>
> Here is the list of installed TCL packages:
>
> libtcl8.5:amd64
> libtcl8.6:amd64
> tcl
> tcl-expect:amd64
> tcl8.5
> tcl8.6
>
> On a 9.6 Debian version. It's just this script that this throwing errors as well.

Why (how) do you have tcl 8.5 and 8.6? Please make sure that expect is
linked with 8.6.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
John,

Still hitting the same issue and replicated it on a fresh Ubuntu 18.04 LTS with 8.6 expect/tcl loaded on it.

> invalid command name "^-"
while executing
"^-"
invoked from within
"expect {
-re "\b+" { exp_continue }
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprom..."
(procedure "run_commands" line 36)
invoked from within
"run_commands $prompt $command"
("foreach" body line 206)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rwest/bin/fxlogin" line 870)

Thanks,

-ryan

-----Original Message-----
From: heasley <heas@shrubbery.net>
Sent: Wednesday, November 28, 2018 5:54 PM
To: Ryan West <rwest@zyedge.com>
Cc: heasley <heas@shrubbery.net>; Rancid-discuss@shrubbery.net
Subject: Re: [rancid] FXOS debugging

Wed, Nov 28, 2018 at 04:09:40PM +0000, Ryan West:
> Same error -
>
> Here is the list of installed TCL packages:
>
> libtcl8.5:amd64
> libtcl8.6:amd64
> tcl
> tcl-expect:amd64
> tcl8.5
> tcl8.6
>
> On a 9.6 Debian version. It's just this script that this throwing errors as well.

Why (how) do you have tcl 8.5 and 8.6? Please make sure that expect is linked with 8.6.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: FXOS debugging [ In reply to ]
Fri, Nov 30, 2018 at 03:47:23PM +0000, Ryan West:
> John,
>
> Still hitting the same issue and replicated it on a fresh Ubuntu 18.04 LTS with 8.6 expect/tcl loaded on it.
>
> > invalid command name "^-"
> while executing
> "^-"
> invoked from within
> "expect {
> -re "\b+" { exp_continue }
> -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
> }
> -re "^\[^\n\r]*$reprom..."
> (procedure "run_commands" line 36)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 206)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> # attempt at platform switching.
> set platform ""
> send_user ..."
> (file "/home/rwest/bin/fxlogin" line 870)

I do not see the cause in the code or the debug output. And, I do not
have a device to test against. running fxlogin against an IOS device
works fine.

maybe start with making sure that you are using the most recent alpha
version of fxlogin. diffs since rancid 3.7 are attached.

> Thanks,
>
> -ryan
>
> -----Original Message-----
> From: heasley <heas@shrubbery.net>
> Sent: Wednesday, November 28, 2018 5:54 PM
> To: Ryan West <rwest@zyedge.com>
> Cc: heasley <heas@shrubbery.net>; Rancid-discuss@shrubbery.net
> Subject: Re: [rancid] FXOS debugging
>
> Wed, Nov 28, 2018 at 04:09:40PM +0000, Ryan West:
> > Same error -
> >
> > Here is the list of installed TCL packages:
> >
> > libtcl8.5:amd64
> > libtcl8.6:amd64
> > tcl
> > tcl-expect:amd64
> > tcl8.5
> > tcl8.6
> >
> > On a 9.6 Debian version. It's just this script that this throwing errors as well.
>
> Why (how) do you have tcl 8.5 and 8.6? Please make sure that expect is linked with 8.6.