[rancid] supressing login banner etc?

Lee ler762 at gmail.com
Thu Nov 10 11:10:49 UTC 2011

On 11/10/11, Alex DEKKER <rancid at ale.cx> wrote:
> On 08.11.2011 22:33, Lee wrote:
>> clogin -c "cmd" dev1 dev2 ... devN  is a really nice way to collect
>> the output from a bunch of devices.  My problem with it is that I get
>> all the login and motd banner cruft.  Has anyone come up with an
>> elegant way to strip out all the junk so you get just the command and
>> command output?
> You could put some unique character/string in the banner and MOTD and
> grep them out while using clogin interactively. Of course you then
> wouldn't see that part of the config, as it would need to be a part of
> the config!

Right.  But that still leaves the device name, spawn ssh ..., prompt
for the password, prompt for the enable password, etc.  What I'm
trying to get is the same output as from 'rsh device cmd' except that
it also shows the command.


More information about the Rancid-discuss mailing list