[rancid] Re: [PATCH] Add support for the Cisco WLC

john heasley heas at shrubbery.net
Wed Apr 28 08:44:05 UTC 2010


Tue, Apr 27, 2010 at 11:46:53PM +0000, Ryan West:
> Michael,
> 
> > -----Original Message-----
> > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-
> > bounces at shrubbery.net] On Behalf Of Michael Stefaniuc
> > Sent: Tuesday, April 27, 2010 4:04 PM
> > To: rancid-discuss at shrubbery.net
> > Subject: [rancid] [PATCH] Add support for the Cisco WLC
> > 
> > Hello guys,
> > 
> > I hoped that somebody would beat me to add the Cisco WLC upstream...
> > Though there was a lot of interest in testing such a patch so here it is.
> > Especially testing on versions 4.x is needed as I could test it only on 5.2.x
> > and 6.0.x.
> 
> It's much cleaner with this version, but it's still failing on the pager or an expect loop.  I would move over to version 6 assurewave but I think I would hit some of the bugs, so I'm holding on to 4.2.207 for a bit longer.
> 
> Here is what's happening:
> 
> rancid at netman:~/bin$ rancid-run -V
> rancid 2.3.3
> rancid at netman:~/bin$ expect -v
> expect version 5.43.0  - debian Lenny 5.43.0-17 build
> 
> 
> rancid at netman:~/bin$ wlclogin -c 'show run-config commands' cisco-wlc4
> cisco-wlc4
> spawn ssh -c 3des -x -l adminuser1234 cisco-wlc4
> 
> 
> (Cisco Controller)
> User: adminuser1234
> Password:********
> (Cisco Controller) >
> (Cisco Controller) >term length 0
> 
> Incorrect usage.  Use the '?' or <TAB> key to list commands.
> 

> expect: does "Press Enter to continue Or <Ctl Z> to abort" (spawn_id exp6) match regular expression "\u0008+"? no
> "^[^\n\r *]*\(Cisco Con([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
> "^[^\n\r]*\(Cisco Con([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
> "^--More--\r\n"? no
> "[\n\r]+"? no
> "[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
> "^ *--More--[^\n\r]*"? no
> "^<-+ More -+>[^\n\r]*"? no
> "^Press Enter to continue or <Ctrl-Z> to abort[^\n\r]*"? no
>  expect: timed out
> 
> Error: TIMEOUT reached
> write() failed to write anything - will sleep(1) and retry...
> 
> When the 'show run-config commands' is run from CLI, I am able to page properly through the file.  Can anyone shed any light on what might be causing what appears to be an expect loop?
> 

the pager is waiting.


More information about the Rancid-discuss mailing list