Viewing the differences between a running configuration and a backup configuration

Prerequisites
Use the cfg-restore {flash | tftp | sftp} <FILE-NAME> diff command to view the list of configuration changes that are removed, modified, or added to the running configuration.
Procedure
  1. Execute the show running-config command to show the running configuration of the switch.
    switch(config)# show running-config
    
    Running configuration:
    
    ; JL255A Configuration Editor; Created on release #WC.16.05.0000x
    ; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
    hostname "Aruba-2930F-24G-PoEP-4SFPP"
    module 1 type jl255a
    snmp-server community "public" unrestricted
    vlan 1
       name "DEFAULT_VLAN"
       no untagged 11-13,15-18
       untagged 1-10,14,19-28
       ip address dhcp-bootp
       exit
    vlan 100
       name "VLAN100"
       untagged 11-13
       no ip address
       exit
    vlan 300
       name "VLAN300"
       untagged 15-18
       no ip address
       exit
  2. Execute the show config golden_config command to show the backup configuration of the switch.
    switch(config)# show config golden_config
    ; JL255A Configuration Editor; Created on release #WC.16.05.0000x
    ; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
    hostname "Aruba-2930F-24G-PoEP-4SFPP"
    module 1 type jl255a
    ; JL255A Configuration Editor; Created on release #WC.16.05.0000x
    ; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
    hostname "Aruba-2930F-24G-PoEP-4SFPP"
    module 1 type jl255a
    
  3. Execute the cfg-restore flash golden_config diff command to view the differences that will be applied.
    switch# cfg-restore flash golden_config diff 
    
    Configuration delete list:
    
    vlan 1
       no untagged 11-13,15-18
       untagged 3-10
       exit
    vlan 100
       untagged 11-13
       exit
    vlan 300
       name "VLAN300"
    
       untagged 15-18
       no ip address
       exit
    
    Configuration add list:
    
    vlan 1
       no untagged 3-10
       untagged 11-13,15-18
       exit
    vlan 100
       untagged 3-5
       exit
    vlan 200
       name "VLAN200"
       untagged 6-10
       no ip address
       exit
    
    NOTE:
    If the running and the backup configuration is the same, no difference will be displayed.
    switch(config)# cfg-restore flash modify diff
    
    Current config and backup config is identical.
  4. Execute the show cfg restore latest-diff command to display the difference between the running and the backup configuration.
    switch(config)# show cfg-restore
     latest-diff           Shows the difference between running and back-up
                           configuration.
     status                Show configuration restoration status.
    
    switch(config)# show cfg-restore latest-diff
    
    Configuration delete list:
    
    ip default-gateway 172.20.0.1
    vlan 100
       name "VLAN100"
       no ip address
       exit
    
    Configuration add list:
    
    vlan 10
       name "VLAN10"
       no ip address
       exit
    
    switch(config)#