[rancid] Re: hlogin script to ProCurve 2650
Emmanuel Halbwachs
Emmanuel.Halbwachs at obspm.fr
Thu Aug 7 12:20:53 UTC 2008
Hello,
Steve Ousley a écrit (Thu, Aug 07, 2008 at 01:01:19PM +0100) :
> however nothing has changed, when running something like sh run (works when
> I manually telnet in) it just hangs, then disconnects. It looks like hlogin
> 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
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 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
Password:
sw-m-b15-27-1> enable
Password:
sw-m-b15-27-1#
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
sw-m-b15-27-1> exit
Do you want to log out [y/n]? y
Connection closed by foreign host.
#
HTH,
--
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