<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 2/16/2010 11:05 AM, James M Keller wrote:
<blockquote cite="mid:4B7AC24D.5040305@houseofzen.org" type="cite">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
I know there was some discussion in the archives about getting these
working (even basic show run, writer term, etc).<br>
<br>
The problem is in rancid:WriteTerm sub, there is a block to compress
'!' lines to a singe line, which ends up dropping the "! End of WAAS
configuration" marker line and leaving the singe '!'. At least in the
4.x WAAS code, there are two '!' lines and then the '! End of WAAS
configuration" line.<br>
<br>
The fix is to add an end of config check above this comment line
compression function:<br>
<br>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> # Cisco WAAS WAE
units prefix End of command line with '!'<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> # Neet to check
for end of config here before skipping comments<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> if (/^! End of
WAAS configuration/) {<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> $found_end =
1;<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> return(0);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> }<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> # skip
consecutive comment lines to avoid oscillating extra comment<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> # line on some
access servers. grrr.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> if (/^!/) {<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> next if
($comment);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">
ProcessHistory("","","",$_);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> $comment++;<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> next;<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> }<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p><br>
I haven't looked at the current code, this was against Debian lenny's
version. <br>
</o:p></span></font></p>
<pre class="moz-signature" cols="72">--
---
James M Keller</pre>
<br>
</blockquote>
<br>
It looks like lenny is 2.3.2 code (listed as current on shrubbery.net),
so I can do diff's when I'm down adding int WAE support to the main
rancid script. Central manager configs are retrievable from CLI. At
best you could script the command to dump the database to XML on the CM
file system and then try more dbfile.xml to terminal. But the admin
guide notes it's resource intensive to do the export. At least I'm
able to grab the acceleration-engine configs and also grab WAAS
specific info as comment entries. I'm likely going to have to tweak
some of it to parse out updating data like session counters, so not
ready to dump a diff yet. Also added WCCP info as comments for both
the WAEs and Cisco IOS, as our shop is using the WCCP rather then
in-line for these. If show ip wccp returns not eabled or invalid, etc
it skips it like any other invalid command for a platform.<br>
<br>
<pre class="moz-signature" cols="72">--
---
James M Keller</pre>
</body>
</html>