[rancid] hp hlogin failing
Jessica Cohen
jcohen at AllenTek.com
Fri Feb 24 00:22:25 UTC 2017
I'm not really sure how to sort all this. Could someone help me with reading the debugs? At a glance, it looks like it should be working.
rancid at net-mgmt2:~/bin$ /var/lib/rancid/bin/hlogin -d -c 'show vers' 192.168.0.7
192.168.0.7
spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {5181}
Gate keeper glob pattern for '(Connection refused|Secure connection [^
]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster.
Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^
]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster.
Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster.
Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster.
Gate keeper glob pattern for '(Username|login|user name):' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster.
expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no
expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no
expect: does "" (spawn_id exp6) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"(Username|login|user name):"? (No Gate, RE only) gate=yes re=no
"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no
">"? no
"denied"? no
"% Bad passwords"? no
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
admin at 192.168.0.7's password:
expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match glob pattern "Press any key to continue"? no
"Enter switch number to connect to or <CR>:"? no
"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no
"Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
"HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no
"HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no
"Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no
expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match glob pattern "unknown host\r"? no
expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no
"(Username|login|user 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) "exp6"
expect: set expect_out(buffer) "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password:"
send: sending "@llen1PS\r" to { exp6 }
Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster.
expect: does " " (spawn_id exp6) match glob pattern "Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
expect: does " \r\r\n" (spawn_id exp6) match glob pattern "Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
ProCurve J9279A Switch 2510G-24
Software revision Y.11.44
Copyright (C) 1991-2013 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
expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\r" (spawn_id exp6) match glob pattern "Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
Press any key to continue
expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes
expect: set expect_out(0,string) "Press any key to continue"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress
any key to continue"
send: sending " " to { exp6 }
expect: continuing expect
expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
p2-test-rack#
expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern "Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
">"? no
-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley
Sent: Thursday, February 23, 2017 6:17 PM
To: Alex DEKKER <rancid at ale.cx>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] hp hlogin failing
Thu, Feb 23, 2017 at 09:37:12PM +0000, Alex DEKKER:
> On 23/02/17 20:20, Jessica Cohen wrote:
> >
> > Hlogin is failing for some reason on my HP2410G. The logs show
> >
> > 192.168.0.7 clogin error: Error: TIMEOUT reached
> >
> > 192.168.0.7: missed cmd(s): write term,show system-information,show
> > system information,show tech transceivers,show module,show
> > version,show config status,show flash,show stack,show config files
> >
> > 192.168.0.7: End of run not found
> >
> > I run it from the CLI and it sort of works. I get to the command
> > prompt in the switch but then can’t enter any commands. If I SSH
> > directly to the switch from the server it works fine.
> >
>
> When you SSH, do you have to press something to see the prompt?
>
> > Suggestions? Response from hlogin below.
> >
> > rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7
> >
> > 192.168.0.7
> >
> > spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7
> >
> > We'd like to keep you up to date about:
> >
> > * Software feature updates
> >
> > <snip>
> >
> > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
> > 94303
> >
> > Press any key to continuemgmt-OOB-sw1#
why is it missing a \r\n? is that rancid eating that in hpuifilter or it he box doing that? hlogin sends a space. might have to look at debug info; hlogin -d -c 'show vers' hostname
>
> It looks like RANCID doesn't recognise the prompt, but it seems like
> it has pressed something.
>
> A quick google suggests a change in 3.5 might be relevant:
>
> "hlogin: when refactoring prompt, eat full lines before looking for
> the prompt"
>
> alexd
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
More information about the Rancid-discuss
mailing list