<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>So, like many I’m attempting to configure RANCID for use with our Riverbed population.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>It mostly works...<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>I can log in, get to enable mode and send commands etc. ( using clogin )<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>In debug mode, the raw file shows everything exactly as I would expect. I’m processing a few commands.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Show info, show version, show licenses, show boot, show admission, show limit bandwidth and show run.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>I’m not an expect / perl programmer so I’ve hacked a copy of the rancid file to just dump exactly what appears on the screen and as I said it debug mode it works perfectly.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>However, what its run in batchmode it always tells me its missed commands and even though when I watch the file creation, I see the “.new” file created and populated it is never saved, it enters the “missed router” process, deletes the file and starts again.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>I’m obviously missing setting some variables to tell either the rancid file or the clogin file that it was successful.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Would apprecaite any pointers.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>For reference I’m running RANCID and ViewVC on CentOS. However, I also have a homegrown web application thats uses wscript files ( yes, Windows ) on another server to read the configuration files of <span style='color:#1F497D'>each </span>device and import it into a SQL DB that is used to generate a basic ASPX front end. The SQL DB is also use to generate the .cloginrc / router.db files automatically from the database content. It has a few extra functions to filter by device type, region, country, location and look for CDP neihbors that do not exist in the RANCID db file etc.<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Marcus<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>