[rancid] Re: Wildcards in banner potentially causing issue

Shapery, Steve Stephen.Shapery at cardinalhealth.com
Sun Feb 24 02:03:41 UTC 2008

The devices were responding properly to a clogin -c 'command' but not to
the rancid-run script.

After digging and digging, it turned out that if I removed the 'show
version' section of the rancid script, that it successfully ran.

The devices are standard 3845's, with no unusual mods... so I have no

Oh well, at least it works now.


-----Original Message-----
From: Ed Ravin [mailto:eravin at panix.com] 
Sent: Saturday, February 23, 2008 5:25 PM
To: Shapery, Steve
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Wildcards in banner potentially causing issue

On Sat, Feb 23, 2008 at 10:45:29AM -0800, Shapery, Steve wrote:
>    So I have rancid running, trying to collect configs from Cisco
>    and it works dandy if I do a command-line clogin with the full
>    commands.
>    clogin -t 90 -c "show run" router1
>    however, if I run it through the rancid-run script, I get odd
>    and it doesn't seem to work.
>    The only thing I can think of is that the login banners have & * `
>    & in them.
>    Does anyone know if I have to somehow escape those out, or do
>    to force the rancid script to ignore the special characters?

The RANCID FAQ ( http://www.shrubbery.net/rancid/FAQ ) says:

Q. Are there any characters in the banner that rancid has problems with
   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
   in or in enable mode.  So if you have a '>' or '#' in your login
   (or other motd), then clogin gets all confused and will not be able
to log
   in correctly, and thus rancid will fail.

   Don't use '>' or '#' in your prompt or in your banner or other motd.

Suggest you go through the FAQ and see if that warning or any
other section in there applies to you.  If you can't fix it, come back
here and post the exact text of the "odd errors" that you're getting.


This message is for the designated recipient only and may contain privileged, proprietary
or otherwise private information. If you have received it in error, please notify the sender
immediately and delete the original. Any other use of the email by you is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese
Svenska: www.cardinalhealth.com/legal/email

More information about the Rancid-discuss mailing list