Excellent, that did the trick. I hope this makes it into the next rancid release.<br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 12:29 PM, Michael Stefaniuc <<a href="mailto:mstefani@redhat.com">mstefani@redhat.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Eric Cables wrote:<br>
> I have sent a couple of e-mails in the past about this topic, and gotten<br>
> some replies that were helpful, but I am still struggling with this. I<br>
> have 9500 series MDS switches, running SAN-OS, that I need to archive.<br>
> Currently I rely on CiscoWorks to do this, which is pretty much the only<br>
> reason I still have that software in place.<br>
><br>
> Here are the suggestions I have received, and implemented:<br>
><br>
> Modify the bin/rancid file as follows:<br>
</div>That's not enough, check the patch/email i have sent to this mailing<br>
list at the beginning of the month; subject was<br>
"[PATCH] Preliminary support for Cisco's SANOS devices"<br>
<br>
bye<br>
michael<br>
<div><div></div><div class="Wj3C7c"><br>
> --<br>
> if (/^Application and Content Networking Software/) { $type="CE"; }<br>
> + if (/^Cisco Storage Area Networking Operating System/) {<br>
> $type="SAN"; }<br>
> --<br>
><br>
> --<br>
> }<br>
> # The ContentEngine lacks a definitive "end of config" marker. If we<br>
> # know that it is a CE and we have seen at least 5 lines of write term<br>
> # o/p, we can be reasonably sure that we got the config.<br>
> if ($type =~ /^CE$/ && $linecnt > 5) {<br>
> $found_end = 1;<br>
> return(0);<br>
> }<br>
><br>
> + # The Cisco SAN switch running SANOS lacks a definitive "end of config"<br>
> + # marker. If we know that it is a SAN switch and we have seen at<br>
> least 5<br>
> + # lines of write term o/p, we can be reasonably sure that we got<br>
> the config.<br>
> + if ($type =~ /^SAN$/ && $linecnt > 5) {<br>
> + $found_end = 1;<br>
> + return(1);<br>
> + }<br>
><br>
> return(0);<br>
> --<br>
><br>
> I have done the above, but it didn't seem to yield the expected<br>
> results. Here is my output from a rancid-run:<br>
><br>
> Trying to get all of the configs.<br>
> mds-02-04: End of run not found<br>
><br>
> mds-02-01: End of run not found<br>
><br>
> mds-02-02: End of run not found<br>
><br>
> mds-02-03: End of run not found<br>
><br>
> <<output ommitted due to redundancy>><br>
><br>
> cvs diff: Diffing .<br>
> cvs diff: Diffing configs<br>
> cvs commit: Examining .<br>
> cvs commit: Examining configs<br>
><br>
> ending: Wed Apr 30 10:42:09 PDT 2008<br>
><br>
><br>
> The above just loops for each round, and then it fails out. Any<br>
> suggestions would be greatly appreciated.<br>
<br>
<br>
--<br>
</div></div><font color="#888888">Michael Stefaniuc Tel.: +49-711-96437-199<br>
Consulting Communications Engineer Fax.: +49-711-96437-111<br>
--------------------------------------------------------------------<br>
Reg. Adresse: Red Hat GmbH, Hauptstätter Strasse 58, 70178 Stuttgart<br>
Handelsregister: Amtsgericht Stuttgart HRB 153243<br>
Geschäftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,<br>
Werner Knoblich<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Eric Cables