[rancid] Hlogin & Timeout

Mahaffey, Brian bmahaffey at pelco.com
Mon Aug 17 19:54:46 UTC 2009


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.

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

 

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> 

 


- ------------------------------------------------------------------------------
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 administrator at 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. 
- ------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090817/9cc43869/attachment.html 


More information about the Rancid-discuss mailing list