[rancid] New HP/Aruba Switch Error
Michael Newton
mnewton at pofp.com
Tue Aug 22 23:31:25 UTC 2017
There appears to be a problem parsing the prompt, which looks to contain
some hidden characters. I'm guessing that maybe the error message is
misleading and it's actually brackets [ ] not balanced. Full output
follows, but this is the interesting part:
Example_Switch56#
expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match
regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# "
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# "
send: sending "no page\r" to { exp3 }
Gate keeper glob pattern for '[
]+' is ''. Not usable, disabling the performance booster.
couldn't compile regular expression pattern: parentheses () not balanced
while executing
"expect {
-re "\[\n\r]+" { exp_continue }
-re $reprompt {}
}"
(procedure "run_commands" line 12)
invoked from within
"run_commands $prompt $command"
("foreach" body line 159)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# device timeout
set timeout [find t..."
(file "/usr/local/bin/hlogin" line 657)
----------------------
root at marceline:~ ❱❱❱ su -lc 'hlogin -d -t 90 -c "show version"
switch.example.com:7056' rancid
switch.example.com:7056
spawn hpuifilter -- /usr/local/bin/sshport -c aes256-cbc,3des-cbc -x -l
admin switch.example.com:7056
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {24629}
Gate keeper glob pattern for '(Connection refused|Secure connection [^
]+ refused|Connection closed by)' is ''. Not usable, disabling the
performance booster.
Gate keeper glob pattern for '(Host key not found |The authenticity of host
.* be established).* \(yes/no\)\?' is ''. Not usable, disabling the
performance booster.
Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.*
\(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating
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 .* \(yes/no\)\?' is
'Offending key for * (yes/no)\?'. 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 'Enter passphrase.*: ' is 'Enter passphrase*:
'. Activating booster.
Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):'
is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '([Pp]assword|passwd):' 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 exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "" (spawn_id exp3) match regular expression "^warning: remote
host denied authentication agent forwarding."? Gate "warning: remote host
denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"denied"? no
"% Bad passwords"? no
expect: does "\r\r\n" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "\r\r\n" (spawn_id exp3) match regular expression "^warning:
remote host denied authentication agent forwarding."? Gate "warning: remote
host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "\r\r\n" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "\r\r\n"
expect: continuing expect
expect: does "" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "" (spawn_id exp3) match regular expression "^warning: remote
host denied authentication agent forwarding."? Gate "warning: remote host
denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"denied"? no
"% Bad passwords"? no
HP J9729A 2920-48G-POE+ Switch
Software revision WB.16.03.0004
(C) Copyright 2017 Hewlett Packard Enterprise Development LP
RESTRICTED RIGHTS LEGEND
Confidential computer software. Valid license from Hewlett Packard
Enterprise
Development LP required for possession, use or copying. Consistent with FAR
12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and Technical Data for Commercial Items are licensed to the
U.S. Government under vendor's standard commercial license.
expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision
WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise
Development LP\r\r\n\r\r\n RESTRICTED RIGHTS
LEGEND\r\r\n Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob
pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision
WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise
Development LP\r\r\n\r\r\n RESTRICTED RIGHTS
LEGEND\r\r\n Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular
expression "^warning: remote host denied authentication agent forwarding."?
Gate "warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision
WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise
Development LP\r\r\n\r\r\n RESTRICTED RIGHTS
LEGEND\r\r\n Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular
expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n"
expect: continuing expect
expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright
2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n
RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid
license from Hewlett Packard Enterprise\r\r\n Development LP required for
possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212,
Commercial Computer Software, Computer Software\r\r\n Documentation, and
Technical Data for Commercial Items are licensed to the\r\r\n U.S.
Government under vendor's standard commercial license.\r\r\n\r\r\n"
(spawn_id exp3) match glob pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright
2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n
RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid
license from Hewlett Packard Enterprise\r\r\n Development LP required for
possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212,
Commercial Computer Software, Computer Software\r\r\n Documentation, and
Technical Data for Commercial Items are licensed to the\r\r\n U.S.
Government under vendor's standard commercial license.\r\r\n\r\r\n"
(spawn_id exp3) match regular expression "^warning: remote host denied
authentication agent forwarding."? Gate "warning: remote host denied
authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright
2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n
RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid
license from Hewlett Packard Enterprise\r\r\n Development LP required for
possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212,
Commercial Computer Software, Computer Software\r\r\n Documentation, and
Technical Data for Commercial Items are licensed to the\r\r\n U.S.
Government under vendor's standard commercial license.\r\r\n\r\r\n"
(spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate
"Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Software revision
WB.16.03.0004\r\r\r\n\r\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "Software revision
WB.16.03.0004\r\r\r\n\r\r\r\n"
expect: continuing expect
expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development
LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press
any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development
LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"^warning: remote host denied authentication agent forwarding."? Gate
"warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development
LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " (C) Copyright 2017 Hewlett Packard
Enterprise Development LP\r\r\n\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " (C) Copyright 2017 Hewlett Packard
Enterprise Development LP\r\r\n\r\r\n"
expect: continuing expect
expect: does " RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press
any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"^warning: remote host denied authentication agent forwarding."? Gate
"warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " RESTRICTED RIGHTS LEGEND\r\r\n
Confidential computer software. Valid license from Hewlett Packard
Enterprise\r\r\n Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " RESTRICTED RIGHTS
LEGEND\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " RESTRICTED RIGHTS
LEGEND\r\r\n"
expect: continuing expect
expect: does " Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob
pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular
expression "^warning: remote host denied authentication agent forwarding."?
Gate "warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " Confidential computer software. Valid license from Hewlett
Packard Enterprise\r\r\n Development LP required for possession, use or
copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n U.S. Government under vendor's
standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular
expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " Confidential computer software. Valid
license from Hewlett Packard Enterprise\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " Confidential computer software. Valid
license from Hewlett Packard Enterprise\r\r\n"
expect: continuing expect
expect: does " Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press
any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"^warning: remote host denied authentication agent forwarding."? Gate
"warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " Development LP required for possession, use or copying.
Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software,
Computer Software\r\r\n Documentation, and Technical Data for Commercial
Items are licensed to the\r\r\n U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " Development LP required for possession,
use or copying. Consistent with FAR\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " Development LP required for possession,
use or copying. Consistent with FAR\r\r\n"
expect: continuing expect
expect: does " 12.211 and 12.212, Commercial Computer Software, Computer
Software\r\r\n Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " 12.211 and 12.212, Commercial Computer Software, Computer
Software\r\r\n Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning:
remote host denied authentication agent forwarding."? Gate "warning: remote
host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " 12.211 and 12.212, Commercial Computer Software, Computer
Software\r\r\n Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " 12.211 and 12.212, Commercial Computer
Software, Computer Software\r\r\n"
expect: continuing expect
expect: does " Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning:
remote host denied authentication agent forwarding."? Gate "warning: remote
host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " Documentation, and Technical Data for Commercial Items are
licensed to the\r\r\n U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " Documentation, and Technical Data for
Commercial Items are licensed to the\r\r\n"
expect: continuing expect
expect: does " U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning:
remote host denied authentication agent forwarding."? Gate "warning: remote
host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does " U.S. Government under vendor's standard commercial
license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " U.S. Government under vendor's standard
commercial license.\r\r\n\r\r\n"
expect: continuing expect
expect: does "" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "" (spawn_id exp3) match regular expression "^warning: remote
host denied authentication agent forwarding."? Gate "warning: remote host
denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"denied"? no
"% Bad passwords"? no
Press any key to continue
expect: does "Press any key to continue" (spawn_id exp3) match glob pattern
"Press any key to continue"? yes
expect: set expect_out(0,string) "Press any key to continue"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "Press any key to continue"
send: sending " " to { exp3 }
expect: continuing expect
expect: does "" (spawn_id exp3) match glob pattern "Press any key to
continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "" (spawn_id exp3) match regular expression "^warning: remote
host denied authentication agent forwarding."? Gate "warning: remote host
denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "" (spawn_id exp3) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"denied"? no
"% Bad passwords"? no
Your previous successful login (as manager) was on 2017-08-22 18:22:35
from 216.234.62.205
Example_Switch56#
expect: does "\u001b[?7hYour previous successful login (as manager) was on
2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# "
(spawn_id exp3) match glob pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "\u001b[?7hYour previous successful login (as manager) was on
2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# "
(spawn_id exp3) match regular expression "^warning: remote host denied
authentication agent forwarding."? Gate "warning: remote host denied
authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "\u001b[?7hYour previous successful login (as manager) was on
2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# "
(spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate
"Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\u001b[?7hYour previous successful login
(as manager) was on 2017-08-22 18:22:35 \r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "\u001b[?7hYour previous successful login
(as manager) was on 2017-08-22 18:22:35 \r\r\n"
expect: continuing expect
expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3)
match glob pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3)
match regular expression "^warning: remote host denied authentication agent
forwarding."? Gate "warning: remote host denied authentication agent
forwarding?"? gate=no
"unknown host\r"? no
expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3)
match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*:
"? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " from 216.234.62.205\r\r\n"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " from 216.234.62.205\r\r\n"
expect: continuing expect
expect: does "Example_Switch56# " (spawn_id exp3) match glob pattern "Press
any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed
by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*
\(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION
HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS
CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"?
gate=no
expect: does "Example_Switch56# " (spawn_id exp3) match regular expression
"^warning: remote host denied authentication agent forwarding."? Gate
"warning: remote host denied authentication agent forwarding?"? gate=no
"unknown host\r"? no
expect: does "Example_Switch56# " (spawn_id exp3) match regular expression
"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (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(spawn_id) "exp3"
expect: set expect_out(buffer) "Example_Switch56# "
send: sending "\r" to { exp3 }
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 exp3) match regular expression "[\r\n]+"? (No
Gate, RE only) gate=yes re=no
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no
Example_Switch56#
expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match
regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# "
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# "
send: sending "no page\r" to { exp3 }
Gate keeper glob pattern for '[
]+' is ''. Not usable, disabling the performance booster.
couldn't compile regular expression pattern: parentheses () not balanced
while executing
"expect {
-re "\[\n\r]+" { exp_continue }
-re $reprompt {}
}"
(procedure "run_commands" line 12)
invoked from within
"run_commands $prompt $command"
("foreach" body line 159)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# device timeout
set timeout [find t..."
(file "/usr/local/bin/hlogin" line 657)
--
Michael Newton
On 20 July 2017 at 11:24, Alan Sklar <casnj3 at gmail.com> wrote:
> Rancid 3.1
>
> On Thu, Jul 20, 2017 at 8:54 AM, heasley <heas at shrubbery.net> wrote:
>
>> Tue, Jul 18, 2017 at 02:24:11PM -0400, Alan Sklar:
>> > I have a couple of HP and Aruba switches. Just recent one of the HP
>> > switches needed to be replaced. I replaced the switch with a comparable
>> > model that HP sent. After fixing the SSH key issues, I am getting the
>> below
>> > error when attempting to get a backup. the switch log shows rancid is
>> > making a connection and hlogin is able to login. Any ideas
>>
>> you havent told us what version youre using. This may be a problem that
>> was fixed in rancid 3.5.
>>
>> > Getting missed routers: round 4.
>> > couldn't compile regular expression pattern: parentheses () not balanced
>> > while executing
>> > "expect {
>> > -re $reprompt {}
>> > -re "\[\n\r]+" { exp_continue }
>> > }"
>> > (procedure "run_commands" line 9)
>> > invoked from within
>> > "run_commands $prompt $command"
>> > ("foreach" body line 161)
>> > invoked from within
>> > "foreach router [lrange $argv $i end] {
>> > set router [string tolower $router]
>> > send_user "$router\n"
>> >
>> > # device timeout
>> > set timeout [find t..."
>> > (file "/usr/local/rancid/bin/hlogin" line 626)
>> > 10.16.100.11: missed cmd(s): all commands
>> > 10.16.100.11: End of run not found
>>
>> > _______________________________________________
>> > Rancid-discuss mailing list
>> > Rancid-discuss at shrubbery.net
>> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>
>>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170822/fff81d82/attachment.html>
More information about the Rancid-discuss
mailing list