[rancid] supressing login banner etc?

Lee ler762 at gmail.com
Tue Nov 8 22:33:37 UTC 2011

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?

My work-around is something like

clogin -c "sh platform summary"  sw1 sw2 sw3 sw4 ... swN |\
 awk '/sh platform/ , /exit/' | tr -d "\r" > /tmp/output

Anyone know of a better method?

And am I the only one that would like an option to suppress all the
login and banner msgs?  (but still see the error msgs)


More information about the Rancid-discuss mailing list