Bug when using SSH on CatOS devices

john heasley heas at shrubbery.net
Thu Oct 28 23:20:51 UTC 2004


Thu, Oct 28, 2004 at 09:13:26AM +0200, Michael Lyngb?l:
> On 27.10.2004 16:49:53 +0000, john heasley wrote:
> 
> > > I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running
> > > CatOS 6.4.
> > > 
> > > Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1).
> > > 
> > > cat5rancid has the following code at around line 1062:
> > > 
> > >    TOP: while(<INPUT>) {
> > >        tr/\015//d;
> > >        if (/> \(enable\) ?exit$/) {
> > >            $clean_run=1;
> > >            last;
> > >        }
> > > 
> > > where $clean_run would be set to true if the prompt matches 'exit'.
> > > However when using SSH the exit becomes:
> > > 
> > >    Switch> (enable)Connection to switch.foo.bar closed by remote host.
> > >    Connection to switch.foo.bar closed.
> > 
> > does it do this when you ssh in manually?
> 
> Yes, eg. when I do:
> 
> 	clogin -c 'sh ver' switch.foo.bar

I meant "ssh switch.foo.bar"



More information about the Rancid-discuss mailing list