[rancid] Re: Hlogin & Timeout

john heasley heas at shrubbery.net
Mon Aug 17 20:31:45 UTC 2009


Mon, Aug 17, 2009 at 12:54:46PM -0700, Mahaffey, Brian:
> 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.

Do you use AAA?  Is your AAA providing this prompt?

> -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.
> 
> user at 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

This looks like it logged-in just fine but could not find the prompt.
autoenable in your cloginrc perhaps.

> 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] ""]
> 
>      }
> 
>  
> 
>  
> 
> Thank you,
> 
>  
> 
> Brian Mahaffey
> Sr. Network Engineer
> Pelco
> 
> (559) 292.1981 ext 5323
> 
> (559) 840.5686 Mobile
> AIM/GTALK/MSN: bmahaffey at gmail.com <mailto:bmahaffey at gmail.com> 


More information about the Rancid-discuss mailing list