[rancid] my scripts for Cisco WLC

684 views
Skip to first unread message

Václav Ovsík

unread,
Mar 7, 2012, 5:15:22 AM3/7/12
to rancid-...@shrubbery.net
Hi,
We have:

(Cisco Controller) >show udi

NAME: "Chassis" , DESCR: "Cisco Wireless Controller"
PID: WS-C3750G-24WS-S25, VID: V02, SN: FOCxxxxxxx

(Cisco Controller) >show sysinfo

Manufacturer's Name.............................. Cisco Systems Inc.
Product Name..................................... Cisco Controller
Product Version.................................. 5.2.193.0
RTOS Version..................................... 5.2.193.0
Bootloader Version............................... 4.0.217.0
Emergency Image Version.......................... 5.2.157.0
...

This box has a prompt as show above `(Cisco Controller) >' and non
standard command to disable paging:

config paging disable

so a standard clogin can't handle it.

I found a post
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html
and start with attached wlogin and ciscowlc5, many thanks for this
starting point to Jeremy.

The original wlogin not used disabled paging and the stupid box did
paging in the middle of the line. Fortunately I found the command above
for disabling paging. After learning expect a bit :) I took original clogin
from Rancid, strip down enable mode and apply the different prompt and
command to disable paging. I modify a little ciscowlc5, so it can be
used with http://sites.google.com/site/jrbinks/code/rancid/wraprancid.

My versions of files wlogin and ciscowlc5 are attached. Hope it can be
useful for someone.

I'm not subscribed on this list, so keep me in the Cc please if I should
receive a reply..

Regards
--
Zito

wlogin
ciscowlc5

Chris DeRemer

unread,
Mar 12, 2012, 8:18:31 AM3/12/12
to Václav Ovsík, rancid-...@shrubbery.net
Zito,

What version of code are you running on your WLC. I've found in the past that different versions of the code respond differently to the login scripts. Even intermediate versions from 5.1 to 5.2.

Great work on this script!

Cheers,
Chris

Hi,
We have:

(Cisco Controller) >show udi

(Cisco Controller) >show sysinfo

config paging disable

Regards
--
Zito
_______________________________________________
Rancid-discuss mailing list
Rancid-...@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Reply all
Reply to author
Forward
0 new messages