Thanks for the patch.  I can’t test today, but I'll try it out tomorrow or 
Wednesday.  If it doesn’t work, I'll also try with -d and NOPIPE=yes... forgot 
about that until now.
weylin

-----Original Message-----
From: heasley <h...@shrubbery.net>
Date: Monday, January 22, 2018 at 10:17
To: Weylin Piegorsch <wey...@bu.edu>
Cc: Daniel Schmidt <daniel.schm...@wyo.gov>, "rancid-discuss@shrubbery.net" 
<rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to Conduct Cisco Wireless Controller Backup

    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@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@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
    
    

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

Reply via email to