Discussion:
[rancid] hlogin support for HP Procurve 5406zl
Jason Ellison
2009-02-06 06:07:29 UTC
Permalink
RANCID 2.3.2a9 does not login to the Procurve 5400zl switch correctly.
I'm using radius... So this may have changed the prompt.

ProCurve J8697A Switch 5406zl
Software revision K.13.45

Please Enter Login Name: jellison
Please Enter Password:


switch00# sh run | include radius
aaa authentication console login radius local
aaa authentication console enable radius local
aaa authentication telnet login radius
aaa authentication telnet enable radius
aaa authentication web login radius
aaa authentication web enable radius
aaa authentication ssh login radius
aaa authentication ssh enable radius


gnu patch generated via diff -uN

--- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600
+++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600
@@ -666,7 +671,9 @@
# Figure out prompts
set u_prompt [find userprompt $router]
if { "$u_prompt" == "" } {
- set u_prompt "(Username|login|user name):"
+ #added "Name" for 5406zl
+ #which has the prompt "Please Enter Login Name:"
+ set u_prompt "(Name|Username|login|user name):"
} else {
set u_prompt [join [lindex $u_prompt 0] ""]
}
Jason Ellison
2009-02-06 15:57:45 UTC
Permalink
Alexander,

Do you have two passwords after "add password" in ".cloginrc"? The
second one is the enable password. I'm running "rancid-2.3.2a9".

.cloginrc

add method sw*.hq.example.org telnet
add user sw*.hq.example.org {username}
add enauser sw*.hq.example.org {username}
add password sw*.hq.example.org {password} {enablepassword}


On Fri, Feb 6, 2009 at 5:36 AM, Smirnoff Alexander
In addiction of you question I want ask about HP Procurve 2650 . I try
to collect configs via RANCID and normal procurve behaviour is like
-bash-3.1$ telnet 10.4.18.230
Trying 10.4.18.230...
Connected to hp2650-kon-3fl-lw-1.spb (10.4.18.230).
Escape character is '^]'.
Please Enter Login Name: spbrancid
hp2650-kon-3fl-lw-1> en
Please Enter Login Name: spbrancid
hp2650-kon-3fl-lw-1# show config
e.g. to log in enable mode, then I can show config I need write user and
password twice. But then I run
-bash-3.1$ bin/hlogin 10. 4.18.230
10.4.18.230
spawn hpuifilter -- telnet 10.4.18.230
Trying 10.4.18.230...
Connected to hp2650-kon-3fl-lw-1.spb (10.4.18.230).
Escape character is '^]'.
ProCurve J4899C Switch 2650
Software revision H.10.74
Copyright (C) 1991-2008 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
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
Press any key to continuePlease Enter Login Name: spbrancid
hp2650-kon-3fl-lw-1>
RANCID not write en and user and password second time? How I can fix it?
Hlogin see in attachment
-----Original Message-----
Sent: Friday, February 06, 2009 9:07 AM
Subject: [rancid] hlogin support for HP Procurve 5406zl
RANCID 2.3.2a9 does not login to the Procurve 5400zl switch correctly.
I'm using radius... So this may have changed the prompt.
ProCurve J8697A Switch 5406zl
Software revision K.13.45
Please Enter Login Name: jellison
switch00# sh run | include radius
aaa authentication console login radius local
aaa authentication console enable radius local
aaa authentication telnet login radius
aaa authentication telnet enable radius
aaa authentication web login radius
aaa authentication web enable radius
aaa authentication ssh login radius
aaa authentication ssh enable radius
gnu patch generated via diff -uN
--- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600
+++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600
@@ -666,7 +671,9 @@
# Figure out prompts
set u_prompt [find userprompt $router]
if { "$u_prompt" == "" } {
- set u_prompt "(Username|login|user name):"
+ #added "Name" for 5406zl
+ #which has the prompt "Please Enter Login Name:"
+ set u_prompt "(Name|Username|login|user name):"
} else {
set u_prompt [join [lindex $u_prompt 0] ""]
}
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-02-07 08:13:18 UTC
Permalink
Post by Jason Ellison
RANCID 2.3.2a9 does not login to the Procurve 5400zl switch correctly.
I'm using radius... So this may have changed the prompt.
does your AAA server set this prompt? is that possible with radius?
Post by Jason Ellison
ProCurve J8697A Switch 5406zl
Software revision K.13.45
Please Enter Login Name: jellison
switch00# sh run | include radius
aaa authentication console login radius local
aaa authentication console enable radius local
aaa authentication telnet login radius
aaa authentication telnet enable radius
aaa authentication web login radius
aaa authentication web enable radius
aaa authentication ssh login radius
aaa authentication ssh enable radius
gnu patch generated via diff -uN
--- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600
+++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600
@@ -666,7 +671,9 @@
# Figure out prompts
set u_prompt [find userprompt $router]
if { "$u_prompt" == "" } {
- set u_prompt "(Username|login|user name):"
+ #added "Name" for 5406zl
+ #which has the prompt "Please Enter Login Name:"
+ set u_prompt "(Name|Username|login|user name):"
} else {
set u_prompt [join [lindex $u_prompt 0] ""]
}
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...