[rancid] Patch for hlogin that covers hp-routers as well .
Mr. James W. Laferriere
babydr at baby-dragons.com
Mon Mar 2 17:36:01 UTC 2009
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 .
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 |
+------------------------------------------------------------------+
More information about the Rancid-discuss
mailing list