[rancid] Re: Patch for hlogin that covers hp-routers as well .

john heasley heas at shrubbery.net
Mon Mar 2 22:59:10 UTC 2009


Mon, Mar 02, 2009 at 08:36:01AM -0900, Mr. James W. Laferriere:
>  	Hello John or whoever is the maintainer of hlogin ,
>  	Would you please apply this patch to hlogin.in as without it the 
> sessions will fail to continue when a "--MORE--" pager is shown .

What HP routers?  Are they actually Foundry OEMs?

>  		Tia ,  JimL
> ps:	John just following your request to just add the necessary command 
> rather than programatically determining which to use .
> 
> 
> diff -u /home/archive/rancid-2.3.2a9/bin/hlogin.in /usr/local/rancid/bin/hlogin
> --- /home/archive/rancid-2.3.2a9/bin/hlogin.in  2008-11-11 16:02:12.000000000 -0900
> +++ /usr/local/rancid/bin/hlogin        2009-03-02 08:28:27.000000000 -0900
> 
> @@ -505,6 +505,7 @@
> 
>       # Turn off the pager and escape regex meta characters in the $prompt
>       send "no page\r"
> +    send "terminal length 0\r"
>       regsub -all {[)(]} $prompt {\\&} reprompt
>       regsub -all {^(.{1,11}).*([#>])$} $reprompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt
>       expect {
> 
> -- 
> +------------------------------------------------------------------+
> | James   W.   Laferriere | System    Techniques | Give me VMS     |
> | Network&System Engineer | 2133    McCullam Ave |  Give me Linux  |
> | babydr at baby-dragons.com | Fairbanks, AK. 99701 |   only  on  AXP |
> +------------------------------------------------------------------+
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list