[c-nsp] Tracking config changes
Ryan West
rwest at zyedge.com
Mon May 24 13:41:04 EDT 2010
> -----Original Message-----
> Sent: Monday, May 24, 2010 1:25 PM
> To: Jeff Rooney
> Cc: Cisco-nsp
> Subject: Re: [c-nsp] Tracking config changes
>
> We heavily comment our configs and back them up in RCS file (mostly
> 6500s). There are also commands that are more clearly understood when
> entered as a multiple single CLIs, but then show up in config as a summarized
> single entry. There is also the ACL entries which get optimized and are not in
> the order they were entered.
>
> Doesn't RANCID only compare the current running to a saved running config.
> So in our case we still have to keep a commented file history around.
>
This is the default of what's run on each cron:
'admin show version'
'show version'
'show redundancy secondary'
'show idprom backplane',
'show install active'
'admin show env all'
'show env all'
'show rsp chassis-info',
'show gsr chassis'
'show diag chassis-info'
'show boot'
'show bootvar'
'admin show variables boot'
'show variables boot'
'show flash'
'dir /all nvram:'
'dir /all bootflash:'
'dir /all slot0:'
'dir /all disk0:'
'dir /all slot1:'
'dir /all disk1:'
'dir /all slot2:'
'dir /all disk2:'
'dir /all harddisk:'
'dir /all harddiska:'
'dir /all harddiskb:'
'dir /all sup-bootflash:'
'dir /all sup-microcode:'
'dir /all slavenvram:'
'dir /all slavebootflash:'
'dir /all slaveslot0:'
'dir /all slavedisk0:'
'dir /all slaveslot1:'
'dir /all slavedisk1:'
'dir /all slaveslot2:'
'dir /all slavedisk2:'
'dir /all slavesup-bootflash:'
'dir /all sec-nvram:'
'dir /all sec-bootflash:'
'dir /all sec-slot0:'
'dir /all sec-disk0:'
'dir /all sec-slot1:'
'dir /all sec-disk1:'
'dir /all sec-slot2:'
'dir /all sec-disk2:'
'show controllers'
'show controllers cbus'
'show diagbus'
'admin show diag'
'show diag'
'show module'
'show spe version'
'show c7200'
'show inventory raw'
'show vtp status'
'show vlan'
'show vlan-switch'
'show debug'
'more system:running-config'
'show running-config'
'write term'
Then with either CVS or SVN you can view your diffs. Not sure about cvsweb, but websvn shows unchanged lines of 5 below and above, including line number to better identify their location in the configs.
-ryan
More information about the cisco-nsp
mailing list