[rancid] rancid with Fortigate FG100A

john heasley heas at shrubbery.net
Fri Feb 4 23:33:44 UTC 2011


Fri, Feb 04, 2011 at 12:41:39PM +0100, I?aki Mart?nez D?ez:
> Hello,
> 
>  Debug mode done, I got this:
> 
>         set authgrp none
> --More--                  set avgrp none
>         set fwgrp none
> 
> 
> 
>  Last lines:
> 
>     next
> --More--              edit "operator"
> --More--
> 
> 
> 
>  NOTE: after "--" there are spaces not tab, checked with 2 editors.
> 
> 
>  I think the problem is this line in fnlogin:
> 
> 460         -gl "--More--"      { send " "

no, thats fine.

i think the device is stupid.  my guess is that telnet/ssh sent zero for
the rows tty attribute that the device's pager is confused.

is this (from fnlogin) working on your device:
    # Disable output paging.
    send -- "config system console\r"
    expect -re $prompt; send -- "set output standard\r"
    expect -re $prompt; send -- "end\r"
    expect -re $prompt;

does a hack like this have an affect:
Index: bin/fnlogin.in
===================================================================
--- bin/fnlogin.in	(revision 2282)
+++ bin/fnlogin.in	(working copy)
@@ -99,6 +99,8 @@
     set password_file $env(CLOGINRC)
 }
 
+stty rows 1024
+
 # Sometimes firewall take awhile to answer (the default is 10 sec)
 set timeout 45
 


More information about the Rancid-discuss mailing list