[rancid] Re: bypassing splash screen on HP ProCurve 3500

Jon Peatfield J.S.Peatfield at damtp.cam.ac.uk
Mon Dec 15 20:20:38 UTC 2008


On Wed, 10 Dec 2008, David Newman wrote:

> On 12/10/08 3:30 AM, Arne Svennevik wrote:
>> First, I'd try with hlogin instead of clogin (since it's a HP). We have
>> several types of HP switches, all with the mentioned splash screen, and
>> rancid pulls configs just fine. We use 'hp' as device type in router.db and
>> the following authentication info:
>> add password    xx.xx.xx.xx           {password}
>> add method      xx.xx.xx.xx           telnet
>> add autoenable  xx.xx.xx.xx           1
>
> Thanks. You're using telnet, and I had ssh. Just tried with telnet
> re-enabled on the switch and that works, including getting past the
> splash screen.
>
> hlogin isn't working with ssh, though:
>
> $ /usr/local/libexec/rancid/hlogin 1.2.3.4
> spawn hpuifilter -- 'ssh -c 3des -x -l admin' 1.2.3.4
>
> Error: Couldn't login
>
> But manually executing 'ssh -c 3des -x -l admin 1.2.3.4' works OK.
>
> Rancid and ssh work with Cisco boxes here; am I missing something in the
> ssh setup for hp?
>
> Also, FWIW the rancid logs report a clogin error for the HP switch:
>
> 1.2.3.4 clogin error: Error: Couldn't login
>
> even though it's defined as an HP box in router.db:
>
> 1.2.3.4:hp:up
>
> What am I missing?

The following seems to work for me - against a variety of HP procurve 
switches though I don't actually have any 3500 boxes atm...

# data (and voip) core switches are HP procurve 5400z series
add password bl08-\[dv\]core1.private {xxxxxxx} {xxxxxxx}
add user bl08-\[dv\]core1.private {manager}
add autoenable bl08-\[dv\]core1.private {1}
add method bl08-\[dv\]core1.private ssh

$ hlogin bl08-vcore1.private
bl08-vcore1.private
spawn hpuifilter -- ssh -c 3des -x -l manager bl08-vcore1.private
bl08-vcore1 (hp 5406zl), CMS voice core switch
manager at bl08-vcore1.private's password:
ProCurve J8697A Switch 5406zl
Software revision K.13.09

Press any key to continuebl08-vcore1#
bl08-vcore1# logo
Do you want to log out [y/n]? y
Connection to bl08-vcore1.private closed.

that is with rancid-2.3.2a8 with a patch (from Richard Golier) to collect 
info with the right commands for the 'newer' versions of the HP firmware.

I suppose that at some point I ought to check if rancid-2.3.2a9 already 
includes that hp fix...

  -- Jon


More information about the Rancid-discuss mailing list