<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2>Eric,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2>The diffs against Rancid 2.3.1 are below. Basically, it
sets the type to be "SAN" if it sees the string "Cisco Storage Area Networking
Software", and then assumes it's found the end of the config if it's seen more
than five lines of output and the router type is "SAN". That was enough to get
it to work for me...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2>Mark</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2>*** rancid Thu Apr 5 05:30:58 2007<BR>---
rancidsan Tue Mar 4 10:30:06 2008<BR>***************<BR>*** 153,158
****<BR>--- 153,159 ----<BR> next;<BR>
}<BR> if (/^Application and Content Networking Software/) {
$type="CE"; }<BR>+ if (/^Cisco Storage Area Networking Operating System/)
{ $type="SAN"; }<BR> /^Application and Content Networking Software
Release /i &&<BR>
ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") &&
next;<BR> /^Cisco Secure PIX /i &&<BR>***************<BR>***
1411,1416 ****<BR>--- 1412,1424 ----<BR> $found_end = 1;<BR>
return(1);<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 least
5<BR>+ # lines of write term o/p, we can be reasonably
sure that we got the config.<BR>+ if ($type =~ /^SAN$/
&& $linecnt > 5) {<BR>+ $found_end = 1;<BR>+
return(1);<BR>+ }<BR>
<BR> return(0);<BR> }</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=198244705-04032008><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rancid-discuss-bounces@shrubbery.net
[mailto:rancid-discuss-bounces@shrubbery.net] <B>On Behalf Of </B>Eric
Cables<BR><B>Sent:</B> Tuesday, 4 March 2008 6:13 AM<BR><B>To:</B> Favas, Mark
(CSIRO IM&T, Kensington)<BR><B>Cc:</B>
rancid-discuss@shrubbery.net<BR><B>Subject:</B> [rancid] Re: Cisco 9124 SAN
Switch<BR></FONT><BR></DIV>
<DIV></DIV>Mark,<BR><BR>I have been unable to backup my 9500 MDS switches since
I've gotten RANCID, and have been relying on other tools to archive the
configs.<BR><BR>What changes did you make to enable the archival of these
devices? I'm not much of a coder, so the more info on what you did the
better.<BR><BR>Thanks,<BR><BR>
<DIV class=gmail_quote>On Mon, Mar 3, 2008 at 2:45 AM, <<A
href="mailto:Mark.Favas@csiro.au">Mark.Favas@csiro.au</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I'm trying to use rancid on a Cisco MDS 9124 SAN
switch running SAN-OS ver 3.1(3a). Initially I had a problem with the
WriteTerm subroutine of the rancid script not recognising when the "end of
config" had been reached. By making a change similar to that for the
ContentEngine, I got past that problem (happy to post diffs if there's any
interest). Now I regularly get emails that the config has changed because the
order of some of the output lines changes (below - the "callhome" line flips
about). Has anyone on the list got a Cisco SAN switch working with
rancid?</FONT></P>
<P><FONT face=Arial size=2>Thanks,</FONT> </P>
<P><FONT face=Arial size=2>Mark Favas</FONT> </P><BR>
<P><FONT face="Courier New" size=2> no snmp-server enable traps
vrrp</FONT> <BR><FONT face="Courier New" size=2> snmp-server enable
traps license</FONT> <BR><FONT face="Courier New" size=2>- callhome</FONT>
<BR><FONT face="Courier New" size=2> fcalias name SH1_2_2 vsan 1</FONT>
<BR><FONT face="Courier New" size=2> member pwwn
21:01:00:1b:32:38:50:10</FONT> <BR><FONT face="Courier New" size=2>
</FONT><BR><FONT face="Courier New" size=2> fcalias name SH2_2_2 vsan
1</FONT> <BR><FONT face="Courier New" size=2>@@ -114,8 +113,9 @@</FONT>
<BR><FONT face="Courier New" size=2> </FONT><BR><FONT face="Courier New"
size=2> fcalias name L180_DR_1 vsan 1</FONT> <BR><FONT
face="Courier New" size=2> member pwwn
50:01:04:f0:00:58:e7:af</FONT> <BR><FONT face="Courier New" size=2>
</FONT><BR><FONT face="Courier New" size=2>+ callhome</FONT> <BR><FONT
face="Courier New" size=2> zone name SH1_2_2_ZONE vsan 1</FONT>
<BR><FONT face="Courier New" size=2> member
fcalias SH1_2_2</FONT>
</P></DIV><BR>_______________________________________________<BR>Rancid-discuss
mailing list<BR><A
href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</A><BR><A
href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss"
target=_blank>http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Eric Cables </BODY></HTML>