[rancid] supressing login banner etc?

Alex DEKKER rancid at ale.cx
Thu Nov 10 10:24:13 UTC 2011

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!


More information about the Rancid-discuss mailing list