Mailing List Archive

rancid & Procurve 2524
Hello to all,

I'm working the marvellous rancid tool since two weeks ago.
I have registered all the cisco routers, but know I have problems to collect
the cinfiguration of HP Procurve 2524 switches.
I use the following definitions in routers.db and .cloginrc:

=========
routers.db
=========
...
192.168.1.78:hp:up
...

=========
.cloginrc
=========
add autoenable 192.168.1.78 1
add password 192.168.1.78 telnetpasswd enablepasswd


The switch is autoeabled, i.e. when I telnet by hand and press 'intro' I
have the '#' prompt, and I can run commands as 'show config'. But rancid
tells that can't contact the device.
If I debug the connection following the FAQ guidelines I see that rancid
makes me to specify the line with the password although it don't use them.
the execution of .hlogi or .clogin shows me the connection to the switch
like telnet, but it blocks, perhaps rancid is waiting for some characters
from switch, and the switch is waiting for characters from rancid.


Hos anybody practical experience with HP Procurve switches like 2524?

Best Regards.
rancid & Procurve 2524 [ In reply to ]
Fri, Apr 05, 2002 at 08:25:56AM +0200, Juan Jos? Mu?oz Martinez:
>
> Hello to all,
>
> I'm working the marvellous rancid tool since two weeks ago.
> I have registered all the cisco routers, but know I have problems to collect
> the cinfiguration of HP Procurve 2524 switches.
> I use the following definitions in routers.db and .cloginrc:
>
> =========
> routers.db
> =========
> ...
> 192.168.1.78:hp:up
> ...
>
> =========
> .cloginrc
> =========
> add autoenable 192.168.1.78 1
> add password 192.168.1.78 telnetpasswd enablepasswd
>
>
> The switch is autoeabled, i.e. when I telnet by hand and press 'intro' I
> have the '#' prompt, and I can run commands as 'show config'. But rancid
> tells that can't contact the device.
> If I debug the connection following the FAQ guidelines I see that rancid
> makes me to specify the line with the password although it don't use them.
> the execution of .hlogi or .clogin shows me the connection to the switch
> like telnet, but it blocks, perhaps rancid is waiting for some characters
> from switch, and the switch is waiting for characters from rancid.

"press I" leads me to believe that you're getting the silly menu system
or they've added something terribly silly to the login procedure. rancid
must have the command-line interface. eg:

% ./hlogin 192.168.0.2
192.168.0.2
spawn hpfilter telnet 192.168.0.2
Trying 192.168.0.2...
Connected to 192.168.0.2.
Escape character is '^]'.
HP J4813A ProCurve Switch 2524
Firmware revision F.02.13

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

Connecting to Tacacs server 192.168.0.1

User Access Verification

Username: user
Password:

HP ProCurve Switch 2524> enable
Password:
HP ProCurve Switch 2524#

>
> Hos anybody practical experience with HP Procurve switches like 2524?
>
> Best Regards.
rancid & Procurve 2524 [ In reply to ]
I've got it.

I've configured login password with "password operator" command and enable
password with "password manager", and then with the line "add password
192.168.1.78 login-pass enable-pass" in .cloginrc rancid can collect the
configuration and status.


-----Mensaje original-----
De: john heasley [mailto:heas at shrubbery.net]
Enviado el: viernes, 05 de abril de 2002 10:07
Para: Juan Jos? Mu?oz Martinez
CC: rancid-discuss at shrubbery.net
Asunto: Re: rancid & Procurve 2524


Fri, Apr 05, 2002 at 08:25:56AM +0200, Juan Jos? Mu?oz Martinez:
>
> Hello to all,
>
> I'm working the marvellous rancid tool since two weeks ago.
> I have registered all the cisco routers, but know I have problems to
collect
> the cinfiguration of HP Procurve 2524 switches.
> I use the following definitions in routers.db and .cloginrc:
>
> =========
> routers.db
> =========
> ...
> 192.168.1.78:hp:up
> ...
>
> =========
> .cloginrc
> =========
> add autoenable 192.168.1.78 1
> add password 192.168.1.78 telnetpasswd enablepasswd
>
>
> The switch is autoeabled, i.e. when I telnet by hand and press 'intro' I
> have the '#' prompt, and I can run commands as 'show config'. But rancid
> tells that can't contact the device.
> If I debug the connection following the FAQ guidelines I see that rancid
> makes me to specify the line with the password although it don't use them.
> the execution of .hlogi or .clogin shows me the connection to the switch
> like telnet, but it blocks, perhaps rancid is waiting for some characters
> from switch, and the switch is waiting for characters from rancid.

"press I" leads me to believe that you're getting the silly menu system
or they've added something terribly silly to the login procedure. rancid
must have the command-line interface. eg:

% ./hlogin 192.168.0.2
192.168.0.2
spawn hpfilter telnet 192.168.0.2
Trying 192.168.0.2...
Connected to 192.168.0.2.
Escape character is '^]'.
HP J4813A ProCurve Switch 2524
Firmware revision F.02.13

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

Connecting to Tacacs server 192.168.0.1

User Access Verification

Username: user
Password:

HP ProCurve Switch 2524> enable
Password:
HP ProCurve Switch 2524#

>
> Hos anybody practical experience with HP Procurve switches like 2524?
>
> Best Regards.
rancid & Procurve 2524 [ In reply to ]
Fri, Apr 05, 2002 at 01:53:07PM +0200, Juan Jos? Mu?oz Martinez:
> I've got it.
>
> I've configured login password with "password operator" command and enable
> password with "password manager", and then with the line "add password

are those part of the configuration? what is their significance (so, i
may make a note in the FAQ/manpage)?
rancid & Procurve 2524 [ In reply to ]
Hello, sorry for the delay.

the teo commands are typed in CLI mode through telnet or console, but you
can set the password for operator and administrator through menu options
through (first typing 'menu' command).

the configuration loks like a cisco device, if you are in menu mode you must
go to CLI mode, if you enter with telnet and the prompt is '>' you must type
enable and enter password if defined to get privileged prompt '#'.
Then to start configuration you must enter comand 'config terminal', now you
get the configuration prompt (config)# and can enter configuration commands.

password operator<CR>

Here is the sequence of commands and inputs:

HP ProCurve Switch 2524> en
HP ProCurve Switch 2524# alhambra.
Invalid input: alhambra.
HP ProCurve Switch 2524# pass
Invalid input: pass
HP ProCurve Switch 2524# conf term
HP ProCurve Switch 2524(config)# password operator
New password: ********
Please retype new password: *********
Retyped password differs from initially typed password.
HP ProCurve Switch 2524(config)# password manager
New password: *********
Please retype new password: *********
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524# write mem
HP ProCurve Switch 2524# exit
HP ProCurve Switch 2524> exit
Do you want to log out (Y/N)?Y


For polling of the switch with rancid add the followin lines to .cloginrc
and router.db:

.cloginrc
=============
...
add password 192.168.1.78 login-pass enable-pass
...

router.db
=============
...
192.168.1.78:hp:up
...

I expect to learn more about procurve switches command line, I provide you
more information as I get it.

Best Regards.

> -----Mensaje original-----
> De: john heasley [mailto:heas at shrubbery.net]
> Enviado el: viernes, 05 de abril de 2002 20:17
> Para: Juan Jos? Mu?oz Martinez
> CC: rancid-discuss at shrubbery.net
> Asunto: Re: rancid & Procurve 2524
>
>
> Fri, Apr 05, 2002 at 01:53:07PM +0200, Juan Jos? Mu?oz Martinez:
> > I've got it.
> >
> > I've configured login password with "password operator"
> command and enable
> > password with "password manager", and then with the line
> "add password
>
> are those part of the configuration? what is their
> significance (so, i
> may make a note in the FAQ/manpage)?
>
>