07-23-2025 08:04 AM
Is there a command to show what config changes since last write men?
07-24-2025 03:24 AM
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.
07-24-2025 06:59 AM
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#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide