[rancid] Re: Support from Cisco ACE modules

Saku Ytti saku+rancid at ytti.fi
Tue Apr 22 19:19:19 UTC 2008


On (2008-04-22 19:53 +0100), Sam Stickland wrote:

This is really rudimentary.

[root at login1.fi.sn.net /opt/RCS/apps/rancid/bin]# hg diff  -r20 -r19 rancid
diff -r 67011fc63924 -r 8ff8aa5f718e bin/rancid
--- a/bin/rancid        Wed Apr 09 15:56:21 2008 +0300
+++ b/bin/rancid        Thu Apr 03 10:41:49 2008 +0300
@@ -154,7 +154,7 @@ sub ShowVersion {
        if (/^$prompt/) { $found_version=1; last};
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /Line has invalid autocommand /;
-       return(1) if /([Ii]nvalid (?:input|command) detected|Type help or )/;
+       return(1) if /(Invalid input detected|Type help or )/;
        return(-1) if (/command authorization failed/i);
        return(0) if ($found_version);          # Only do this routine once
        # the pager can not be disabled per-session on the PIX
@@ -168,7 +168,7 @@ sub ShowVersion {
            $slaveslot = ", slot $1";
            next;
        }
-       if (/^Application and Content Networking Software/ or /^Cisco Application Control Software/) { $type="CE"; }
+       if (/^Application and Content Networking Software/) { $type="CE"; }
        /^Application and Content Networking Software Release /i &&
            ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") && next;
        /^Cisco Secure PIX /i &&
@@ -1423,7 +1423,7 @@ sub WriteTerm {
        $linecnt++;
        $lineauto = 0 if (/^[^ ]/);
        # skip the crap
-       if (/^(##+$|(Building|Current|Generating) configuration)/i) {
+       if (/^(##+$|(Building|Current) configuration)/i) {
            while (<INPUT>) {
                next if (/^Current configuration\s*:/i);
                next if (/^:/);
[root at login1.fi.sn.net /opt/RCS/apps/rancid/bin]# 


> Hi,
> 
> Has anyone done any work for supporting these? All they need for clogin 
> to work is an autoenable statement, but rancid is unable to collect the 
> configurations. I haven't looked at this extensively I think it's just 
> because the pager statement is different:
> 
> I get these entries in the logs:
> 
> my-ace-module: End of run not found
> 
> It's also trying to execute a bunch of commands that don't make sense on 
> ACE modules.
> 
> I'm a competent, but time staved programmer. If someone can point 
> towards the bits of the scripts that need modifying I'll try and get 
> this done.
> 
> Sam
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-- 
  ++ytti


More information about the Rancid-discuss mailing list