Discussion:
[rancid] Patch for hlogin
David Byers
2013-01-04 15:57:54 UTC
Permalink
I found that rancid failed to log in to some HP switches that were using
radius and had old enough firmware that autoenable wouldn't work. Rancid
didn't recognize the second username prompt, and stopped.

The following patch fixed the problem:


--- hlogin.in.orig 2013-01-04 16:55:08.703640021 +0100
+++ hlogin.in 2013-01-04 16:55:52.824326718 +0100
@@ -696,7 +696,7 @@
# Figure out prompts
set u_prompt [find userprompt $router]
if { "$u_prompt" == "" } {
- set u_prompt "(Username|login|user name):"
+ set u_prompt "(Username|login|user name|Login Name):"
} else {
set u_prompt [join [lindex $u_prompt 0] ""]
}
--
David Byers
Linköping university
Loading...