cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1937
Views
5
Helpful
16
Replies

Configuration changes

mobyplane
Level 1
Level 1

Is there a command to show what config changes since last write men?

16 Replies 16

Interesting, especially that last OID.

If I were to be asked if there was any way to obtain a transactional history of configuration changes, I recall that might be done via AAA external logging.  I wonder if this somewhat related, at least conceptionally, or perhaps more for something conceptionally like the look back of previously entered CLI lines.

Joseph W. Doherty
Hall of Fame
Hall of Fame

BTW, here's an example on a CML virtual router:

inserthostname-here#sh configuration | section interface
interface GigabitEthernet0/0
 description To be deleted
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/1
 description To be revised
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/2
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/3
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
inserthostname-here#
inserthostname-here#sh run | section interface
interface GigabitEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/1
 description Revised
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/2
 description Added
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
interface GigabitEthernet0/3
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
inserthostname-here#
inserthostname-here#sh archive config differences nvram:startup-config system:running-config       
!Contextual Config Diffs:
interface GigabitEthernet0/1
 +description Revised
interface GigabitEthernet0/2
 +description Added
line con 0
 +length 0
interface GigabitEthernet0/0
 -description To be deleted
interface GigabitEthernet0/1
 -description To be revised

inserthostname-here#

 Interestingly, the running config also includes:

line con 0
 length 0

But, that's not saved by write memory.

No additional configuration statements were made to support the archive config diff command.

@mobyplane cannot guarantee the archive config diff command is available on all platforms, but it may be on your Catalyst 9000s.

Does this command, if available, provide an answer to your question?

 

BTW, you might also be able to use just:

sh archive config differences

Which appears to default to meaning:

sh archive config differences system:running-config nvram:startup-config

So, the pluses and minuses will be "backwards" from my example:

e.g.

inserthostname-here#sh archive config differences
!Contextual Config Diffs:
interface GigabitEthernet0/0
 +description To be deleted
interface GigabitEthernet0/1
 +description To be revised
interface GigabitEthernet0/1
 -description Revised
interface GigabitEthernet0/2
 -description Added
line con 0
 -length 0

inserthostname-here#