[rancid] Wrong command sent and TIMEOUTs with HP ProCurve 2824

Morten Liebach m at mongers.org
Wed Jul 26 13:17:29 UTC 2006


Hello,

I am trying to get rancid to work with our HP ProCurve 2824's.  And I
have problems.

The switches are set up so that there's no password on the enable
command.  I've been trying various configurations without enable
password, empty password and the same as the login password to no avail.

This is the .cloginrc I'm using:

    add user * rancid
    add password * {PASSWORD} {}
    add autoenable * {0}
    add method * ssh

Operating system is FreeBSD 4.11, rancid and friends are installed from
ports.

Adding to the fun; I don't always get the same output.  Let me
illustrate:

===== begin 1st try =====
$ flogin 123.123.123.123
123.123.123.123
spawn ssh -c 3des -x -l rancid 123.123.123.123
rancid at 123.123.123.123's password:
HP J4903A ProCurve Switch 2824
Firmware revision I.07.31

Copyright (C) 1991-2003 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

[snip bunch of empty lines]

Connecting to Tacacs server



Press any key to continue
Error: TIMEOUT reached
===== end 1st try =====

And another time:

===== begin 2nd try =====
$ flogin 123.123.123.123
123.123.123.123
spawn ssh -c 3des -x -l rancid 123.123.123.123
rancid at 123.123.123.123's password:
HP J4903A ProCurve Switch 2824
Firmware revision I.07.31

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

[snip bunch of empty lines]

foundry-switch>

[snip bunch of empty lines]

foundry-switch> nable
Invalid input: nable
foundry-switch>
Error: TIMEOUT reached
can not find channel named "exp4"
    while executing
"interact"
    ("foreach" body line 131)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/flogin" line 518)
===== end 2nd try =====

I wonder where that 'e' went...

The second variant is the rarest.

Trying an interactive login by hand:

===== begin interactive session =====
$ ssh user at 123.123.123.123
user at 123.123.123.123's password:

[snip bunch of empty lines]

foundry-switch> en
foundry-switch# sh version
Image stamp:    /sw/code/build/mako(m03)
                Aug 26 2003 16:49:11
                I.07.31
                1179
Boot Image:     Primary
foundry-switch# exit
foundry-switch> exit
Do you want to log out [y/n]? y

[snip bunch of empty lines]

Connection to 123.123.123.123 closed by remote host.
Connection to 123.123.123.123 closed.
===== end interactive session =====

So, what am I doing wrong?

Have a nice day
                                 Morten

-- 
http://m.mongers.org/weblog/ -- http://flickr.com/photos/morten_liebach/



More information about the Rancid-discuss mailing list