[rancid] Re: All routers showing as down
Nick.Hollingsworth at alphawest.com.au
Fri Nov 13 03:59:55 UTC 2009
> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-
> bounces at shrubbery.net] On Behalf Of alex dekker
> Sent: Thursday, 12 November 2009 17:25
> To: rancid-discuss at shrubbery.net
> Subject: [rancid] Re: All routers showing as down
> On Thursday 12 November 2009 08:33:41 john heasley wrote:
> > Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth:
> > > * logging into the Rancid linux host as root
> > > * scp'd router.db off
> > > * modified it
> > > * scp'd it back on (as root)
> > dollars to donuts; they edited it on a winblows host and it now has
> > winblows line terminators.
> If you open it in Vim, it will tell you what type of file it is on the status
> line at the bottom. Also, check the permissions/ownership of the file.
You nailed it Alex and John - file was in DOS format. Solved it with:
Now I need to figure out a way for the admins to modify the file without changing the format. I did some tests - rancid doesn't seem to mind if root owns router.db or that router.db group is root.
So I just need to figure out the optimal way for the admins to edit the file irrelevant of what user they are.
I've also tested the various file formats outputted by Windows editors when opened on a Red Hat machine:
* notepad, default save, WinSCP upload - unix
* notepad, default save, opened from linux VM - DOS
* wordpad, any save, WinSCP upload - DOS
I'm loath to make the admins SSH to the Red Hat box & use Vi or Nano....notepad & WinSCP it is.
Thanks for your help Alex & John.
If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments.
This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information.
If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original.
This email is confidential and may contain privileged client information.
Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted.
More information about the Rancid-discuss