I have thousands of switches where the company banner proudly flies in ASCII art made exclusively of #-marks.

This, according to the rancid FAQ, is a show stopper:

Q. Are there any characters in the banner that rancid has problems with OR  
 I changed the device's command prompt and now collection is failing?  
A. The trickiest part about clogin (et al) is recognizing the prompt  
 correctly.  clogin looks for '>' and '#' to figure out if it is logged  
 in or in enable mode.  So if you have a '>' or '#' in your login banner  
 (or other motd), then clogin gets confused and will not be able to log  
 in correctly, and thus rancid will fail.  

 Don't use '>' or '#', or whatever the termination character of the given  
 device's prompt is, in your prompt or in your banner or other motd.  

Obviously, I can't change all of the banners. Even if I could, I'd have used clogin, soooo...

Has anyone hacked together a workaround for this?

If it helps, in my case there banner lines all start with at least three spaces.

  • 2
    You should consider moving this to stackoverflow.com - The reason I have suggested this is because I have made modification to rancid and it's made from Bash and Perl scripts so you could probably achieve what you desire by changing the part that looks for '#' or '>'. Create a regex or similar that looks for '*#$' (which is pseudo regex by the way!). I'm trying to suggest there 'anything before a # then end of line'.
    – Baldrick
    Dec 18, 2013 at 11:22
  • That is possibly wrong as I just gave it off the top of my head, but what I am trying to suggest is that you could probably create a little bit of logic to solve this problem in code.
    – Baldrick
    Dec 18, 2013 at 11:23
  • @jwbensley - I put it here because it's a specific network tool - if it doesn't take, I'll dig into the code myself and post my shortcomings on StackOverflow :)
    – Jan
    Dec 18, 2013 at 12:57
  • 2
    I think your best chance actually is the rancid-discuss mailinglist (shrubbery.net/mailman/listinfo/rancid-discuss)
    – Teun Vink
    Dec 18, 2013 at 13:19
  • 1
    There was a post on this 9 days ago; shrubbery.net/pipermail/rancid-discuss/2013-December/…
    – Baldrick
    Dec 18, 2013 at 14:55

1 Answer 1


This has been fixed in upstream and is no longer relevant. I am closing it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.