[rancid] cpu info missing from sup-2t

Per-Olof Olsson peo at chalmers.se
Fri Jun 21 09:53:07 UTC 2013


 From Todo list for rancid-3.0a2
...
- cpu info missing from sup-2t
   Index: configs/r01.londen01.uk.bb.gin.ntt.net
    ===================================================================
    retrieving revision 1.807
    diff -U 4 -r1.807 r01.londen01.uk.bb.gin.ntt.net
    @@ -1,24 +1,23 @@
      !RANCID-CONTENT-TYPE: cisco
      !
      !Chassis type: WS-C6509-E - a WS-C6509-E router
    - !CPU: R7000, SR71000 CPU at 600Mhz, impl 0x504, Rev 1.2, 512KB L2 Cache
    + !CPU: M8572
...


Have someone fixed this?

Else this will add some more info for sup-2t:s

$ diff -c rancid.in_ORG-2.3.8 rancid
*** rancid.in_ORG-2.3.8 2012-01-31 23:55:13.000000000 +0100
--- rancid      2013-06-21 11:17:26.899859733 +0200
***************
*** 301,306 ****
--- 336,353 ----
                 }
                 $_ = <INPUT>;
             }
+           if ($cpu =~ /M8572/) {
+               if (defined($cpu)) {
+                   s/^ CPU://;
+                   ProcessHistory("COMMENTS","keysort","A3", "!CPU: $cpu, $_");
+               }
+ LINE:         while (<INPUT>) {
+                   last LINE if /^\s*$/;
+                   ProcessHistory("COMMENTS","keysort","A3", "!CPU: $_");
+                   last LINE if /^\s*I-cache/;
+               }
+               undef ($cpu);
+           }
             $_ = "" if (! /(cpu at |processor: |$cpu processor,)/i);
             tr/\015//d;
             s/implementation/impl/i;
***************

Yes it's multiple lines in "show version" for sup-2t.
Don't know if it safe to exit while loop on "I_cache" or "empty" line after.
Left both if something change.
Does this lines need a more strict match?


diff from one of our sup-2t:s
4c4,8
< !CPU: M8572
---
 > !CPU: M8572,  MPC8572_E, Version: 2.1, (0x80E80021)
 > !CPU:  CORE: E500, Version: 3.0, (0x80210030)
 > !CPU:  CPU:1500MHz, CCB:600MHz, DDR:600MHz
 > !CPU:  L1:    D-cache 32 kB enabled
 > !CPU:         I-cache 32 kB enabled




/Peo
----------------------------------------------------------
Per-Olof Olsson               Email: peo at chalmers.se
Chalmers tekniska högskola    IT-service
Hörsalsvägen 5                412 96 Göteborg
Tel: 031/772 6738  Fax: 031/772 8680
----------------------------------------------------------


More information about the Rancid-discuss mailing list