[rancid] XRRANCID with CRS-1 devices

john heasley heas at shrubbery.net
Thu Aug 25 00:29:31 UTC 2011


Tue, Aug 23, 2011 at 01:26:48PM -0400, Mack, David A (Dave):
> All,
> 	As I progress with our new install of Rancid version 2.3.6 I am taking a close look at how the xrrancid script handles CRS-1 routers running IOS-XR. We have single and multi-chassis CSR-1 systems currently running IOS-XR 3.9. What I am seeing is that some of the commands syntax are not supported on the device at all and others are not pulling all the information that they might. In the hopes that it might help improve this script, I have listed my observations below:
> 
> 1) Show Version 
> 
> Is not picking up the following:
> 
> 2 Management Ethernet
> 192 GigabitEthernet
> 95 SONET/SDH
> 95 Packet over SONET/SDH
> 1019k bytes of non-volatile configuration memory.
> 76170M bytes of hard disk.
> 2049888k bytes of disk0: (Sector size 512 bytes).
> 
> It is also showing the processor as 
> 
> 
> !Chassis type: CRS-16/S - a CRS-16/S router
> !CPU: 7457
> 
> Where the raw output is this:
> 
> cisco CRS-16/S (7457) processor with 4194304K bytes of memory.
> 7457 processor at 1197Mhz, Revision 1.2
> 
> So perhaps we could make it more descriptive?

That is intentional; sort of an artifact of rancid's day 1 behavior.  it is
a CRS 16 router and that is the model of the cpu.  the memory should follow
those lines, such as an ASR:

!Memory: main 4194304K
!Memory: nvram 219k
!Memory: pcmcia disk0 1605616k
!Memory: pcmcia disk1 1605616k

perhaps this isn't happening for the CRS?  I dont have access to any; the ASR
is bad enough :)

> 2) show redundancy secondary
> 
> That syntax is not supported on the CRS-1:
> 
> RP/0/RP0/CPU0:ROUTER#show redundancy secondary
>                                              ^
> % Invalid input detected at '^' marker.
> RP/0/RP0/CPU0:ROUTER#show redundancy ?        
>   location    Location to display
>   statistics  Redundancy statistics information
>   summary     Show summary of all redundant node pairs
>   trace       Show redundancy trace data
>   |           Output Modifiers
>   <cr>        

I think this was blindly assumed from IOS-rancid.  Does the ASR 1k have this
command?  the 9k doesnt support it.

> 
> 3) admin show env all output
> 
> None of the output of this command is making into the output from xrrancid

Looks like RSP LED info (perhaps) and PS capacity are the only interesting
bits on the ASR.  on the CRS?

> 4) show diag chassis-info
> 
> This syntax is also not supported on the CRS-1

nor on the 9k.  on the 1k?  Perhaps show diag summary is interesting; but it
seems mostly a duplicate of show inventory.

> 5) show controllers
> 
> This command requires an argument on the CRS-1:

also likely a remnant of IOS.  on the 1k?

> 6) show vlan 
> 
> This command also requires an argument on the CRS-1:
> 
> RP/0/RP0/CPU0:ROUTER#sh vlan
> % Incomplete command.
> RP/0/RP0/CPU0:ROUTER#sh vlan ?
>   interface  VLAN interface status and configuration
>   tags       VLAN tag allocation
>   trunks     VLAN trunks status and configuration

again, probably a remnant of IOS switches.  the 9k doesnt have show vlan.
do those show anything interesting that isnt in the config?

> 7) We should also have the command "admin show running-config" added. The reason for this is that on multi-chassis systems each chassis has it S/N entered and is assigned a rack number. In addition, fabric chassis information is recorded here.
> 
> Single chassis
> 
> RP/0/RP0/CPU0:ROUTER#admin show running-config 
> Building configuration...
> !! IOS XR Admin Configuration 3.9.0
> username root
>  group root-system
>  group cisco-support
>  secret <removed>
> !
> aaa authentication login remote local
> end
> 
> Multi-chassis
> 
> RP/0/RP0/CPU0:ROUTER#admin show run
> Building configuration...
> !! IOS XR Admin Configuration 3.9.0
> username root
>  group root-system
>  group cisco-support
>  secret 5 <removed>
> !
> aaa authentication login remote local
> dsc serial TBA12380069 rack 240
> dsc serial TBA12380105 rack 0
> dsc serial TBM15055938 rack 1
> controllers fabric plane 0
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM9/FM
> !
> controllers fabric plane 1
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM6/FM
> !
> controllers fabric plane 2
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM3/FM
> !
> controllers fabric plane 3
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM0/FM
> !
> controllers fabric plane 4
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM12/FM
> !
> controllers fabric plane 5
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM15/FM
> !
> controllers fabric plane 6
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM18/FM
> !
> controllers fabric plane 7
>  oim count 1
>  oim width 1
>  oim instance 0 location F0/SM21/FM
> !
> end

ack.


More information about the Rancid-discuss mailing list