Support for NetScreens (n{login,rancid})

john heasley heas at shrubbery.net
Fri Jun 10 01:04:11 UTC 2005


Thu, Jun 09, 2005 at 07:48:16AM +0100, Jee Kay:
> The support files for NetScreens seem a little faulty, nrancid not
> even parsing and nlogin depending on a concept that NetScreens dont
> have (enable).
> 
> The two patches below clean them up enough for them to at least work -
> please let me know if there's anything obviously wrong.

Please try rancid 2.3.2a.  There have been several changes since the versions
in your diffs, in which both of these bugs were squashed.

> Thanks,
> Ras
> 
> PS: Does gmail do annoying line breaks?
> PPS: Diffs against:
> nlogin:## $Id: nlogin.in,v 1.17 2004/05/21 19:28:49 heas Exp $
> nrancid:## $Id: nrancid.in,v 1.13 2004/01/11 03:49:13 heas Exp $
> 
> --- nlogin.orig Thu Jun  9 01:37:17 2005
> +++ nlogin      Thu Jun  9 01:35:18 2005
> @@ -485,14 +485,14 @@
>      if {[login $firewall $ruser $userpswd $passwd $enapasswd $prompt
> $cmethod $cyphertype]} {
>         continue
>      }
> -    if { $enable } {
> -       if {[do_enable $enauser $enapasswd]} {
> -           if { $do_command || $do_script } {
> -               close; wait
> -               continue
> -           }
> -       }
> -    }
> +#    if { $enable } {
> +#      if {[do_enable $enauser $enapasswd]} {
> +#          if { $do_command || $do_script } {
> +#              close; wait
> +#              continue
> +#          }
> +#      }
> +#    }
>      # we are logged in, now figure out the full prompt
>      send "\r"
>      expect {
> 
> --- nrancid.orig        Thu Jun  9 01:36:24 2005
> +++ nrancid     Thu Jun  9 01:42:12 2005
> @@ -197,6 +197,7 @@
>              ProcessHistory("ADMIN","","",
>                 "!set admin user $1 password <removed> privilege $3\n");
>              next;
> +        }
>         ProcessHistory("","","","$_");
>      }
>      $found_end=1;



More information about the Rancid-discuss mailing list