<!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.3395" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New" size=2>Hi
everyone. I'm a new user of rancid. In setting up my installation, I
was going batty trying to figure out why all the entries in my router.db file
ended up in the routers.down file. I started monkeying around in
control_rancid and discovered that I needed to add the \r* to the following
lines:</FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT size=2><FONT face="Courier New">perl
-F: -ane '{($F[0] =~ </FONT><A href="mailto:tr@A-Z@a-z@,print"><FONT
face="Courier New">tr@A-Z@a-z@,print</FONT></A><FONT face="Courier New">
$_)<BR> if ($F[2] !~ /^up\r*$/i);}' routers.db >
routers.down.new</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT size=2><FONT face="Courier New">perl
-F: -ane '{($F[0] =~ </FONT><A href="mailto:tr@A-Z@a-z@,print"><FONT
face="Courier New">tr@A-Z@a-z@,print</FONT></A><FONT face="Courier New">
"$F[0]:$F[1]\n")<BR> if ($F[2] =~ /^up\r*$/i);}' routers.db
> routers.up.new</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New" size=2>I have only
used vim to edit the router.db file (albiet both on windows and linux) so didn't
expect to have issues with goofy line feeds that sometimes creep up when using
things like windows wordpad. </FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New" size=2>I post this
to the users on the list to see if I'm just doing something wrong, and also to
give this simple fix to anyone else having problems with their routers ending up
in the routers.down file.</FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New" size=2>I'm running
perl v5.8.8 on Ubuntu 8.0.4.</FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT face="Courier New" size=2>Thanks
everyone. Its a pretty slick tool once I got it going.</FONT></SPAN></DIV>
<DIV><SPAN class=797551815-02092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=797551815-02092008><FONT size=2><FONT face="Courier New"><FONT
face=Arial></FONT> </DIV>
<DIV><BR></DIV></FONT></FONT></SPAN></BODY></HTML>