Discussion:
[rancid] Patch for hlogin that covers hp-routers as well .
Mr. James W. Laferriere
2009-03-02 17:36:01 UTC
Permalink
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 |
| ***@baby-dragons.com | Fairbanks, AK. 99701 | only on AXP |
+------------------------------------------------------------------+
john heasley
2009-03-02 22:59:10 UTC
Permalink
Post by 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?
Post by Mr. James W. Laferriere
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 |
+------------------------------------------------------------------+
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mr. James W. Laferriere
2009-03-03 01:45:19 UTC
Permalink
Post by john heasley
Post by 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?
Post by Mr. James W. Laferriere
Tia , JimL
ps: John just following your request to just add the necessary command
rather than programatically determining which to use .
Hth , JimL
#sh ver
ProCurve Secure Router 7102dl
SROS Version: J06.06
Checksum: 715D204B, built on: Wed Feb 07 09:32:03 2007
Boot ROM version J06.06
Checksum: C50D, built on: Wed Feb 07 09:32:23 2007
Copyright (c) 2007-2005, Hewlett-Packard, Co.
Platform: ProCurve Secure Router 7102dl
Serial number US507TR005
Flash: 33554432 bytes DRAM: 134217727 bytes

System uptime is 20 weeks, 1 days, 3 hours, 29 minutes, 52 seconds

Current system image: "J06_06.biz"
Current configuration-file: "startup-config"
Configured system image path:
Primary: "J06_06.biz"
Backup: "J06_03.biz"
Configured configuration-file path:
Primary: "startup-config"

...snip...
--
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network&System Engineer | 2133 McCullam Ave | Give me Linux |
| ***@baby-dragons.com | Fairbanks, AK. 99701 | only on AXP |
+------------------------------------------------------------------+
A***@HydroOne.com
2009-03-03 14:59:31 UTC
Permalink
I am having trouble with backing up Foundry devices.


Here is what I have in the .cloginrc file:

add user n08w ranciduser
add password n08w password
add enauser n08w ranciduser
add password n08w password
add method n08w ssh telnet


In the logs it says flogin : TIMEOUT? Can anyone assist here.


thanks

Loading...