"show ver" output changes in recent IOS
Yuval Ben-Ari
yuvalba at netvision.net.il
Sun Jan 4 13:59:23 UTC 2004
Hi,
Lately after upgrading some routers to 12.3(4)T code I noticed rancid is
no longer able to determine Memory/nvram memory size and Image/Software
info.
I found this is caused due to changes in the "show ver" command's
output.
relevant changed output lines:
Old output:
IOS (tm) 7400 Software (C7400-JS-M), Experimental Version
12.3(20030813:213719) [REL-v123_1_b_throttle.ios-weekly 120]
509K bytes of non-volatile configuration memory.
New output:
Cisco IOS Software, 7400 Software (C7400-IK9S-M), Version 12.3(4)T,
RELEASE SOFTWARE (fc1)
509K bytes of NVRAM.
it can be solved easily by adjusting the regexp in bin/rancid
(line numbers relevant to rancid-2.2.2)
line 151:
- /^IOS .* Software \(([A-Za-z-0-9]*)\), .*Version\s+(.*)$/ &&
+ /IOS .* Software.* \(([A-Za-z-0-9]*)\), .*Version\s+(.*)$/ &&
line 252:
- /^(\d+[kK]) bytes of non-volatile/ &&
+ /^(\d+[kK]) bytes of non-volatile/ &&
We are still using 2.2.2 so if it is already fixed in 2.3* just ignore
my message :-)
The problem is that syntax is prone to change in the future again
without any notice.
I guess this is the price for fetching data from parsing CLI output.
On the other hand I see that sysDescr.0 OID is inconsistent in the same
way.
I saw recent IOS has some XML support but did not really looked into it
.....
Yuval
More information about the Rancid-discuss
mailing list