<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div><div>Here’s what my debug output looks like, where you get the hang. You’re correct, you are logged in, the different order for telnet vs ssh doesn’t cause any problems. For some reason your system is checking for > instead of #. Do you have noenable active on this device? For testing, you can try adding -noenable to the hlogin command.</div><div><br></div><div><p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">"[Pp]assword:"? Gate "?assword:"? gate=no</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">"#"? no</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">Switch75-SW1D.FL15.RM1# </p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">expect: does "Switch75-SW1D.FL15.RM1# " (spawn_id exp4) match glob pattern "Press any key to continue"? no</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">"[Pp]assword:"? Gate "?assword:"? gate=no</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">"#"? yes</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">expect: set expect_out(0,string) "#"</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">expect: set expect_out(spawn_id) "exp4"</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">expect: set expect_out(buffer) "Switch75-SW1D.FL15.RM1#"</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">send: sending "\r" to { exp4 }</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">Gate keeper glob pattern for '[</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">]+' is ''. Not usable, disabling the performance booster.</p>
<p style="margin: 0px; font-size: 12px; font-family: Monaco; color: rgb(235, 235, 235); background-color: rgb(0, 0, 0);">Gate keeper glob pattern for '^.+#' is '*#'. Activating booster.</p></div><div><br></div><div><div id="MAC_OUTLOOK_SIGNATURE"><div style="font-family: Calibri;"><p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);"><br></span></p><p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">--</span><span style="font-size: 10.5pt;"><o:p></o:p></span></p></div><div style="font-family: Calibri;"><p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">Michael Newton<br>Director, Product Development<br>Point of Presence Technologies<br><b><i>You manage your business. We’ll manage your network.</i></b><br></span><span style="font-size: 8pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">206-1110 Government </span><span style="font-size: 8pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">Street, Victoria BC  V8W 1Y2</span><br><span style="font-size: 8pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">T: 250-412-6688 x 7040 | F: 484-731-9837</span><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p></o:p></span></p><p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: Verdana, sans-serif; color: rgb(51, 102, 153);">mnewton@pofp.com | www.pofp.com</span></p></div></div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Jim P<br><span style="font-weight:bold">Date: </span> Thursday, June 11, 2015 at 1:51 PM<br><span style="font-weight:bold">To: </span> Todd Heide<br><span style="font-weight:bold">Cc: </span> Michael Newton, "<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>"<br><span style="font-weight:bold">Subject: </span> Re: [rancid] hlogin timing out<br></div><div><br></div><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div><div dir="ltr">thanks for the help... I feel like I'm being a nuisance now! I'm getting used to this mailing list in how it works, so excuse the duplicates.
<div><br></div><div>here's the full debug below. TEST-SWITCH99 is the name of my switch.. but I am accessing it via IP</div><div><br></div><div>here is the interesting part with my HP's. Logging in via telnet asks for you to "push any key" then it asks for a password.</div><div>logging on as SSH asks you for name then password, then asks you to "push any key"</div><div><br></div><div>It "seems" that the script logs in .. because it is actually giving me the switch TEST-SWITCH99 name which wouldn't show until after I log in but I'm guessing that's a problem.</div><div><br></div><div>Is there a way to force hlogin to do ssh instead of telnet? maybe that would work? It definitely feels confused.</div><div><br></div><div>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br></div><div><div>[rancid@localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99</div><div>10.10.0.99</div><div>spawn hpuifilter -- telnet 10.10.0.99</div><div>parent: waiting for sync byte</div><div>parent: telling child to go ahead</div><div>parent: now unsynchronized from child</div><div>spawn: returns {6671}</div><div>Gate keeper glob pattern for '(Connection refused|Secure connection [^</div><div>]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?.</div><div>Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHA.</div><div>Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^</div><div>]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster.</div><div>Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activat.</div><div>Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster.</div><div>Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the .</div><div>Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster.</div><div><br></div><div>expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no</div><div>"Enter switch number to connect to or <CR>:"? no</div><div>"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro</div><div>"Host is unreachable"? no</div><div>"No address associated with name"? no</div><div>"(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo</div><div>"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no</div><div>"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no</div><div>"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no</div><div><br></div><div>expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no</div><div><br></div><div>expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o</div><div>"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no</div><div>"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no</div><div>">"? no</div><div>"denied"? no</div><div>"% Bad passwords"? no</div><div>Trying 10.10.0.99...</div><div>Connected to 10.10.0.99.</div><div>Escape character is '^]'.</div><div>ProCurve J4899B Switch 2650</div><div>Software revision H.10.115</div><div><br></div><div>Copyright (C) 1991-2014 Hewlett-Packard Co.  All Rights Reserved.</div><div><br></div><div>                           RESTRICTED RIGHTS LEGEND</div><div><br></div><div> Use, duplication, or disclosure by the Government is subject to restrictions</div><div> as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and</div><div> Computer Software clause at 52.227-7013.</div><div><br></div><div>         HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303</div><div><br></div><div>Press any key to continue</div><div>expect: does "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character is '^]'.\r\r\r\nPrs</div><div>expect: set expect_out(0,string) "Press any key to continue"</div><div>expect: set expect_out(spawn_id) "exp4"</div><div>expect: set expect_out(buffer) "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character "</div><div>send: sending " " to { exp4 }</div><div>expect: continuing expect</div><div><br></div><div>expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no</div><div>"Enter switch number to connect to or <CR>:"? no</div><div>"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro</div><div>"Host is unreachable"? no</div><div>"No address associated with name"? no</div><div>"(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo</div><div>"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no</div><div>"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no</div><div>"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no</div><div><br></div><div>expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no</div><div><br></div><div>expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o</div><div>"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no</div><div>"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no</div><div>">"? no</div><div>"denied"? no</div><div>"% Bad passwords"? no</div><div>Password:</div><div>expect: does "Password: " (spawn_id exp4) match glob pattern "Press any key to continue"? no</div><div>"Enter switch number to connect to or <CR>:"? no</div><div>"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro</div><div>"Host is unreachable"? no</div><div>"No address associated with name"? no</div><div>"(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo</div><div>"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no</div><div>"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no</div><div>"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no</div><div><br></div><div>expect: does "Password: " (spawn_id exp4) match glob pattern "unknown host\r"? no</div><div><br></div><div>expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passpho</div><div>"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no</div><div>"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes</div><div>expect: set expect_out(0,string) "Password:"</div><div>expect: set expect_out(1,string) "Password"</div><div>expect: set expect_out(spawn_id) "exp4"</div><div>expect: set expect_out(buffer) "Password:"</div><div>send: sending "3nd3rw1gg1n\r" to { exp4 }</div><div>Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster.</div><div><br></div><div>expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no</div><div>"[Pp]assword:"? Gate "?assword:"? gate=no</div><div>">"? no</div><div><br></div><div>TEST-SWITCH99#</div><div>expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no</div><div>"[Pp]assword:"? Gate "?assword:"? gate=no</div><div>">"? no</div><div>expect: timed out</div><div><div><br></div></div><div>Error: TIMEOUT reached</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div><div></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Jun 11, 2015 at 3:59 PM, Todd Heide <span dir="ltr">
<<a href="mailto:workwithcisco@yahoo.com" target="_blank">workwithcisco@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What is debug telling you?  When you run debug it will output what Rancid is doing when it logs in, maybe you can see the errors the HP is putting out.<br><br><br></blockquote></div></div></div></div></div></span></body></html>