[rancid] Unable to Conduct Cisco Wireless Controller Backup

heasley heas at shrubbery.net
Mon Jan 22 15:16:50 UTC 2018


Sun, Jan 21, 2018 at 05:43:23AM +0000, Piegorsch, Weylin William:
> I’m running rancid v3.4.1.  I have a number of Cisco WISM2 controller running 8.2.166.0.  rancid is not able to acquire any of their configs.  I’ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, none of them work. The logs, copied below, show the results of cisco-wlc5 (all controllers were identical, I’ve trimmed down to just one).  What could be causing this?  Why would the results vary across the five rounds?  And, which type should I be using?
> 
> weylin

does the patch below fix it?  the patch is against HEAD, so there
may be some fuzz.

> [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501
> starting: Fri Jan 19 14:25:01 EST 2018
> 
> 
> 
> Trying to get all of the configs.
> controller: missed cmd(s): show run-config commands
> controller: End of run not found
> !WLC Show Sysinfo End
> =====================================
> Getting missed routers: round 1.
> controller: missed cmd(s): all commands
> controller wlogin error: Error: Connection closed (ssh): controller
> controller: End of run not found
> =====================================
> Getting missed routers: round 2.
> controller: missed cmd(s): show run-config commands
> controller: End of run not found
> =====================================
> Getting missed routers: round 3.
> controller: missed cmd(s): all commands
> controller wlogin error: Error: TIMEOUT reached
> controller: End of run not found
> !
> =====================================
> Getting missed routers: round 4.
> controller: missed cmd(s): show run-config commands
> controller: End of run not found
> !WLC Show Sysinfo End
> 
> cvs diff: Diffing .
> cvs diff: Diffing configs
> cvs commit: Examining .
> cvs commit: Examining configs
> 
> ending: Fri Jan 19 14:39:59 EST 2018
> [rancid at nsgv-prod-59 logs]$

Index: lib/ciscowlc.pm.in
===================================================================
--- lib/ciscowlc.pm.in	(revision 3739)
+++ lib/ciscowlc.pm.in	(revision 3740)
@@ -42,7 +42,7 @@
 
 TOP: while(<$INPUT>) {
 	tr/\015//d;
-	if (/^.*logout(Connection.*closed.)?$/)  {
+	if (/^.*logout(\s*Connection.*closed.)?$/)  {
 	    $clean_run = 1;
 	    last;
 	}
Index: CHANGES
===================================================================
--- CHANGES	(revision 3739)
+++ CHANGES	(revision 3740)
@@ -1,4 +1,6 @@
 3.99.99
+	ciscowlc.pm: handle variant of logout bug
+
 	fnrancid: update md5-keys filter for Fortigate 5.4.6
 
 	sros.pm: move show chassis power-supply o/p - Greg Hankins



More information about the Rancid-discuss mailing list