show running-config diff

To display the differences between the running configuration and the startup configuration, use the show running-config diff command.

show running-config diff

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

The table below describes the notations used in the command output.

show running-config diff Notations
Notation
Description
******************* ––– line1, line2 –––– *** line1, line2 ****
Indicates ranges of lines where differences occur. The range of lines indicated with asterisks (*) is for the startup configuration and the range indicated with dashes (–) is for the startup configuration.
+ text
Indicates that the line is in the running configuration but is not in the startup configuration.
text
Indicates that the line is not in the running configuration but it is in the startup configuration.
! text
Indicates that the line exists in both configurations but in different orders.

Examples

This example shows how to display the difference between the running configuration and the startup configuration:

switch# show running-config diff
*** Startup-config
--- Running-config
***************
*** 1874,1883 ****
--- 1873,1883 ----
system cores tftp://192.168.2.5/tftpboot/ vrf management
vsan database
vsan 700
cfs eth distribute
fcdomain fcid database
+ vsan 700 wwn 10:00:00:00:00:15:43:e8 fcid 0x350000 dynamic
vsan 1 wwn 20:44:00:0d:ec:b0:fc:40 fcid 0x780000 dynamic
vsan 1 wwn 20:43:00:0d:ec:b0:fc:40 fcid 0x780001 dynamic
vsan 1 wwn 24:01:00:0d:ec:b0:fc:40 fcid 0x780002 dynamic
 
interface Vlan1
***************
*** 2089,2103 ****
--- 2089,2113 ----
priority-flow-control mode on
speed 1000
flowcontrol receive on
service-policy type qos input 1
 
+ interface port-channel1932
+ shutdown
+ switchport mode trunk
+ switchport trunk allowed vlan 600
+ spanning-tree bpdufilter enable
+ speed 10000
<--Output truncated-->
switch#
 

Related Commands

Command
Description
copy running-config startup-config
Copies the running configuration to the startup configuration.
show running-config
Displays the differences between the running configuration and the startup configuration.
show startup-config
Displays the startup configuration.