[rancid] Missed cmd(s): all commands / clogin error: Error: extra characters after close-brace

Alan McKinnon alan.mckinnon at gmail.com
Wed Jul 8 16:05:02 UTC 2015


On 08/07/2015 15:39, Hart, Benjamin wrote:
> Actually no, the script did not.  Clogin x.x.x.x gave the same error. I got fed up though and created a new .cloginrc file late last night and this file works.  But what's weird is that I even went through the original file and removed every single line of the sample info to where all that was left was my entries, but still error'd out.


I had that once where someone edited .cloginrc with an unusual editor.
It added ^M at end-of-line which aren't normally visible in vim but can
be seen with less.

Might be worth checking out.


> 
> -----Original Message-----
> From: Calgon [mailto:heas at shrubbery.net] 
> Sent: Tuesday, July 7, 2015 7:29 PM
> To: Hart, Benjamin
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Missed cmd(s): all commands / clogin error: Error: extra characters after close-brace
> 
> Tue, Jul 07, 2015 at 05:41:19PM +0000, Hart, Benjamin:
>> I have searched and I know the usual cause for this.. but my cloginrc file seriously has all the proper close-braces, see below:
>>
>>
>>
>> Add password x.x.x.x     {[password]}      {[password]}
>> Add user x.x.x.x               {admin}
>> Add method x.x.x.x        {ssh}
>>
>> Add password x.x.x.x     {[password]}      {[password]}
>> Add user x.x.x.x               {root}
>> Add method x.x.x.x        {telnet}
>>
>> The two specific IP's stated in the log file is seriously, and 100% triple verified to only have the text above. Yes my passwords include a bracket which worked for the initial diff polling. My issue today is that I made changes to a single switch, those changes were not polled by rancid.  Only the initial 'new router' entry is seen. No config changes have been done to the rancid server either. No security changes have been done to the switches either.
>>
>> Did the syntax for the .cloginrc file change? Hell in the examples it shows how the user and method values are not wrapped in braces however after testing that by removing the braces around mine I still get the same error.
>>
>> Calgon, take me away.
> 
> The first two questions will always be: does the login scripts work for an interactive login to the device?  if yes, then does a command (-c) work.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list