[rancid] Re: hlogin script to ProCurve 2650

Steve Ousley steve at host-it.co.uk
Thu Aug 7 12:33:00 UTC 2008

Hi Emmanuel

I am using the source from rancid's site, however this is hosted on Debian
Etch (I didn't realise it was in apt).

I have tried running hlogin with the command you pasted below (with the
passwords changed for the right ones) and I simply get an error: 
-bash: <password>: event not found

I have also tried without the either the -v and -e parts, and also with both
of these removed, but with the -c "sh run", and it logs into the switch no
problems, however it still fails to do anything once it has logged in.

The only difference I can see from your output to mine is that yours gives
you the > prompt and then enables where the one I have here simply goes
straight to the #prompt (enabled I assume).

I have also tried this with -noenable and -autoenable, but with the same


Steve Ousley - SO620-RIPE
Nuco Technologies Ltd
steve at host-it.co.uk
Tel. 0870 165 1300

Nuco Technologies Ltd is a company registered in England and Wales
with company number 04470751

-----Original Message-----
From: Emmanuel Halbwachs [mailto:Emmanuel.Halbwachs at obspm.fr] 
Sent: 07 August 2008 13:21
To: Steve Ousley
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Re: hlogin script to ProCurve 2650


Steve Ousley a écrit (Thu, Aug 07, 2008 at 01:01:19PM +0100) :
> however nothing has changed, when running something like sh run (works
> I manually telnet in) it just hangs, then disconnects.  It looks like
> is not handing over the control of the shell to me with the interact
> command, however I could be well off with this one.

Well, it works straight ahead here.
I'm using Debian etch's rancid 

  Paquet : rancid-core
  Version : 2.3.1-1

with John Heasley's patch I cited previously.

Example of output :

# /usr/lib/rancid/bin/hlogin -v shhhh -e shhhh -c "sh run" sw-m-b15-27-1

spawn hpuifilter -- telnet sw-m-b15-27-1
Trying 145.238.***.***...
Connected to sw-m-b15-27-1.obspm.fr.
Escape character is '^]'.
ProCurve J4899B Switch 2650
Firmware revision H.08.83

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

                           RESTRICTED RIGHTS LEGEND

 Use, duplication, or disclosure by the Government is subject to
 as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
 Computer Software clause at 52.227-7013.

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


sw-m-b15-27-1> enable
sw-m-b15-27-1# no page
sw-m-b15-27-1#  sh run

Running configuration:

; J4899B Configuration Editor; Created on release #H.08.83

hostname "sw-m-b15-27-1"

[etc. the whole configuration]

sw-m-b15-27-1> exit
Do you want to log out [y/n]? y

Connection closed by foreign host.


Emmanuel Halbwachs
Resp. Réseau/Sécurité                    Observatoire de Paris-Meudon
tel      : (+33)1 45 07 75 54                   5 Place Jules Janssen
fax      : (+33)1 45 07 76 13                    F 92195 MEUDON CEDEX 

More information about the Rancid-discuss mailing list