Discussion:
[rancid] hlogin & timeout
Mahaffey, Brian
2009-08-07 21:25:47 UTC
Permalink
Hello,



When trying to use hlogin I get timeouts when trying to login to the
enable prompt. I thought I was running version 2.3.2a10 but I guess my
upgrade didn't work as expected.



-bash-3.2$ hlogin HP5308-B6-1.pelco.org

hp5308-b6-1.pelco.org

spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org

Switch - DO NOT LOGIN.

***@hp5308-b6-1.pelco.org's password:

ProCurve J4819A Switch 5308xl

Software revision E.11.03



Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved.



RESTRICTED RIGHTS LEGEND



Use, duplication, or disclosure by the Government is subject to
restrictions

as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and

Computer Software clause at 52.227-7013.



HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303



Press any key to continueHP5308-B6-1>

Error: TIMEOUT reached



HLOGIN Version

#! /usr/bin/expect --

##

## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $

##

## rancid 2.3.2a9



I found a patch from a google search which didn't work for me.



--- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600

+++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600

@@ -666,7 +671,9 @@

# Figure out prompts

set u_prompt [find userprompt $router]

if { "$u_prompt" == "" } {

- set u_prompt "(Username|login|user name):"

+ #added "Name" for 5406zl

+ #which has the prompt "Please Enter Login Name:"

+ set u_prompt "(Name|Username|login|user name):"

} else {

set u_prompt [join [lindex $u_prompt 0] ""]

}




- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to ***@pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
- ------------------------------------------------------------------------------
Loading...