[rancid] Rancid WLC - no command after login
Christopher DeRemer
cderemer at phoebe.org
Sun Dec 12 15:39:06 UTC 2010
Ah ha! I can actually answer a question!
The ciscowlc5 script uses the command show running-config... but for some reason in the 193 code (5.2.193.0) it doesn't like that and outputs some unwanted text:
(Cisco Controller) >show running-config
Notice: "show running-config" has been changed to be an alias to "show run-config".
Use "show run-config commands" to display the configuration commands.
Press Enter to continue or <Ctrl-Z> to abort...
So to fix this I made a separate script which uses a different command table with using the show run-config commands to output the proper commands.
I made one file called ciscowlc151 for the normal command table:
@commandtable = (
{'show udi' => 'ShowUdi'},
{'show sysinfo' => 'ShowSysinfo'},
{'show running-config' => 'ShowConfig'}
And made another file called ciscowlc193 for the 5.2.193.0 code:
@commandtable = (
{'show udi' => 'ShowUdi'},
{'show sysinfo' => 'ShowSysinfo'},
{'show running-config' => 'ShowConfig'}
Then I just added some new rancid-fe device types
>'cisco-wlc193' => 'ciscowlc193',
>'cisco-wlc151' => 'ciscowlc151',
This allows you to have both code versions in the same environment. I have not tested this on any other versions of code but 5.2.151 and 5.2.193 to see if anything else is a problem. I found this by running the rancid in verbose mode so that I saw the error text come up that was causing the timeout.
Christopher DeRemer, CCENT
Network Administrator
Phoebe Services
484.619.2168 (Single # Reach)
-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Ryan West
Sent: Sunday, December 12, 2010 9:18 AM
To: king1982 at centrum.cz; Ryan West; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rancid WLC - no command after login
Martin,
I assume you're using ciscowlc5? What you're seeing is the timeout when it tries to run one of the variations of show running-config / show running-config all.
Try adding the -d switch and should see where it times out.
-ryan
-----Original Message-----
From: king1982 at centrum.cz [mailto:king1982 at centrum.cz]
Sent: Saturday, December 11, 2010 7:59 PM
To: Ryan West; rancid-discuss at shrubbery.net
Subject: RE: [rancid] Rancid WLC - no command after login
Hello Ryan,
WLC SW version is 5.2.193.0
Martin
______________________________________________________________
> Od: "Ryan West" <rwest at zyedge.com>
> Komu: "king1982 at centrum.cz" <king1982 at centrum.cz>,"rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
> Datum: 11.12.2010 21:27
> Předmět: RE: [rancid] Rancid WLC - no command after login
>
>Martin,
>
>What version of WLC are you trying to backup?
>
>-ryan
>
>-----Original Message-----
>From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of king1982 at centrum.cz
>Sent: Saturday, December 11, 2010 12:30 PM
>To: rancid-discuss at shrubbery.net
>Subject: [rancid] Rancid WLC - no command after login
>
>
>Hello,
>
>I´m trying to set up RANCID to collect my WLC device configurations.
>
>I placed wlogin, ciscowlc and ciscowlc5 in bin directory of the RANCID, then edit /bin/rancid-fe file:
>
>'cisco-wlc' => 'ciscowlc',
>'cisco-wlc5' => 'ciscowlc5',
>
>mydevice:ciscowlc:up added to router.db
>
>In log file I found this:
>
>Trying to get all of the configs.
>10.0.0.100: error: Error: TIMEOUT reached
>10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
>10.0.0.100: End of run not found
>10.0.0.100: wlogin error: Error: TIMEOUT reached
>10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
>10.0.0.100: End of run not found
>
>After this result I try to test function of wlogin script:
>
>wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
>
>Any suggestions what is wrong?
>
>Thanks and best regards,
>
>Martin
>_______________________________________________
>Rancid-discuss mailing list
>Rancid-discuss at shrubbery.net
>http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
NOTICE: This confidential message/attachment contains information intended for a specific individual(s). Any inappropriate use, distribution or duplication is strictly prohibited. If received in error, notify the sender and immediately delete this transmission.
More information about the Rancid-discuss
mailing list