[rancid] [PATCH]: Improved IOS XE detection in rancid

Alan McKinnon alan.mckinnon at gmail.com
Fri Apr 25 07:00:20 UTC 2014


Cisco appear to have changed the IOS-XE stamp in "show version" for some
images. This causes the XE detection in ShowVersion() to fail, causing
the filtering for tracelog in DirSlotN() to not be applied.

One-line patch below. The strings are subtlety different, it seemed
easier to add a new regex rather than adapt the existing one.

Sample version output:

#show ver
Cisco IOS XE Software, Version 03.10.02.S - Extended Support Release
Cisco IOS Software, ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M),
Version 15.3(3)S2, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.


Diff:

--- rancid.old  2014-04-25 08:51:36.000000000 +0200
+++ rancid      2014-04-25 08:53:34.000000000 +0200
@@ -196,6 +196,7 @@
            next;
        }
        if (/cisco ios .* IOS-XE/i) { $ios = "XE"; }
+       if (/cisco IOS XE software/i) { $ios = "XE"; }
        if (/^Application and Content Networking .*Software/) { $type =
"CE"; }
        # treat the ACE like the Content Engines for matching endofconfig
        if (/^Cisco Application Control Software/) { $type = "CE"; }



-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list