[rancid] Patch for hlogin

David Byers david.byers at liu.se
Fri Jan 4 15:57:54 UTC 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130104/d46c8f21/attachment.bin>


More information about the Rancid-discuss mailing list