Discussion:
[rancid] Rancid on Force10 SFTOS
Marcus Stoegbauer
2008-04-01 09:48:56 UTC
Permalink
Hi,

in case anyone will stumble upon this in the last months of SFTOS,
here is how you can make Rancid work with Force10 SFTOS:

1. Tell clogin to send "logout" instead of "exit" when working with
Force10 (the diff is against rancid-2.3.2a8):

--- clogin.in 2008-02-08 07:28:29.000000000 +0100
+++ clogin.in-new 2008-04-01 11:42:37.000000000 +0200
@@ -701,7 +701,11 @@
# the Cisco CE and Jnx ERX
# return to non-enabled mode
# on exit in enabled mode.
- send -h "exit\r"
+ if { [ string compare "force10" "$platform" ] } {
+ send -h "logout\r"
+ } else {
+ send -h "exit\r"
+ }
exp_continue;
}
"Would you like to save them now" { # Force10


2. Get the new f10rancid module from
http://www.twoguys.org/~gregh/software/f10rancid.in
The "end" of show run is actually a "end " on SFTOS, so
we have to change one line. I don't know if adding a match
for zero or more spaces will break anything with FTOS though
(and can't test):

--- f10rancid.in 2008-02-07 22:22:23.000000000 +0100
+++ f10rancid.in-new 2008-04-01 11:33:24.000000000 +0200
@@ -476,7 +476,7 @@
# catch anything that wasnt matched above.
ProcessHistory("","","","$_");
# end of config. the ": " game is for the PIX
- if (/^end$/) {
+ if (/^end *$/) {
$found_end = 1;
return(0);
}

Marcus

Loading...