[rancid] hlogin timing out
Jim P
jabbyjim at gmail.com
Thu Jun 11 19:18:48 UTC 2015
that is good news and good advice, thank you. Its a pretty hard read but it
pretty much feels like rancid gets lost after it logs in? I upgraded to
Rancid 3.2, but it didn't help :(
[rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99
10.10.0.99
spawn hpuifilter -- telnet 10.10.0.99
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {6380}
--- SNIP ---
expect: does "Password: " (spawn_id exp4) match regular expression "Enter
passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes
re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "Password:"
expect: set expect_out(1,string) "Password"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Password:"
send: sending "testpass\r" to { exp4 }
Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating
booster.
expect: does " " (spawn_id exp4) match glob pattern "Press any key to
continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
TEST-SWITCH99#
expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern
"Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
expect: timed out
Error: TIMEOUT reached
------------------------
On Thu, Jun 11, 2015 at 2:26 PM, Michael Newton <mnewton at pofp.com> wrote:
> Jim, I don’t have much insight aside from passing the –d flag to hlogin
> which will give you a lot of debugging.
>
> My reason for replying is just to let you know that we are successfully
> backing up HP 2600-8, 2626, and 2650 switches, and with much older firmware
> revisions on some of them (e.g. H.10.31.) We’re running rancid 3.1, and
> have not seen any issues with timeouts like this.
>
>
> --
>
> Michael Newton
> Director, Product Development
> Point of Presence Technologies
>
>
> From: Rancid-discuss on behalf of Jim P
> Date: Thursday, June 11, 2015 at 8:49 AM
> To: "rancid-discuss at shrubbery.net"
> Subject: [rancid] hlogin timing out
>
> I have narrowed down my recent issues to that I really believe I'm having
> an HP specific issue. Its driving me bonkers and I hope I'm not doing the
> same for the mailing list.
>
> trying to run this off of a test HP 2650
>
> When I run this:
>
> ./clogin -c "show ver" 10.10.0.99
>
> ------------------------------------------------------------------------------
> [rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99
> 10.10.0.99
> spawn telnet 10.10.0.99
> Trying 10.10.0.99...
> Connected to 10.10.0.99.
> Escape character is '^]'.
> ProCurve J4899B Switch 2650
> Software revision H.10.115
> Copyright (C) 1991-2014 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 continue
> Password:
>
> TEST-SWITCH99#
> TEST-SWITCH99# terminal length 0
> Invalid input: 0
> TEST-SWITCH99#
> Error: TIMEOUT reached
>
> ---------------------------------------------------------------------------------
>
> it does much better than if I do the following (which just sort of locks
> up the screen)
>
>
> ---------------------------------------------------------------------------------
> ./hlogin -c "show ver" 10.10.0.99
>
> 10.10.0.99
> spawn hpuifilter -- telnet 10.10.0.99
> Trying 10.10.0.99...
> Connected to 10.10.0.99.
> Escape character is '^]'.
> ProCurve J4899B Switch 2650
> Software revision H.10.115
>
> Copyright (C) 1991-2014 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 continuePassword:
> TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out)
> Error: TIMEOUT reached
>
> ---------------------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150611/ead8d1ca/attachment.html>
More information about the Rancid-discuss
mailing list