Users Guide

Table Of Contents
To check differences between the running configuration and the candidate configuration, use the show diff candidate-
configuration running-configuration command.
For example, before entering Transaction mode, you can check that no new configuration commands are entered. If the show command
does not return output, the candidate-configuration and running-configuration files are the same. Then start Transaction
mode, configure new settings, and view the differences between the candidate and running configurations. Decide if you want to commit
the changes to the running configuration. To delete uncommitted changes, use the
discard command.
View differences between candidate and running configurations
OS10# show diff candidate-configuration running-configuration
OS10#
OS10# start transaction
OS10# configure terminal
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# exit
OS10(config)# interface ethernet 1/1/15
OS10(conf-if-eth1/1/15)# switchport mode trunk
OS10(conf-if-eth1/1/15)# switchport trunk allowed vlan 100
OS10(conf-if-eth1/1/15)# end
OS10# show diff candidate-configuration running-configuration
!
interface ethernet1/1/15
switchport mode trunk
switchport trunk allowed vlan 100
!
interface vlan100
no shutdown
OS10#
Commit configuration changes in candidate configuration in Transaction mode
1. Change to Transaction-based configuration mode from EXEC mode.
start transaction
2. Enter configuration commands. For example, enable an interface from INTERFACE mode.
interface ethernet 1/1/1
no shutdown
3. Save the configuration changes to the running configuration.
do commit
After you enter the commit command, the current OS10 session switches back to the default behavior of committing all configuration
changes automatically.
OS10# start transaction
OS10# configure terminal
OS10(config)#
OS10(config)# interface ethernet 1/1/1
OS10(config-if-eth1/1/1)# no shutdown
OS10(config-if-eth1/1/1)# do commit
Compressed configuration views
To display only interface-related configurations in the candidate configuration, use the show candidate-configuration
compressed and show running-configuration compressed commands. These views display only the configuration
commands for VLAN and physical interfaces.
OS10# show candidate-configuration compressed
interface breakout 1/1/1 map 40g-1x
interface breakout 1/1/2 map 40g-1x
interface breakout 1/1/3 map 40g-1x
interface breakout 1/1/4 map 40g-1x
...
interface breakout 1/1/30 map 40g-1x
interface breakout 1/1/31 map 40g-1x
interface breakout 1/1/32 map 40g-1x
CLI Basics
55