Display Switch Profile Synchronization Between Local and Peer Switch
The following example shows how to display the initial successful synchronization between the two peers:
switch1# show switch-profile sp status
Start-time: 491815 usecs after Mon Jul 20 11:54:51 2015
End-time: 449475 usecs after Mon Jul 20 11:54:58 2015
Profile-Revision: 1
Session-type: Initial-Exchange
Peer-triggered: No
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 10.193.194.52
Sync-status: In Sync.
Status: Commit Success
Error(s):
switch2# show switch-profile sp status
Start-time: 503194 usecs after Mon Jul 20 11:54:51 2015
End-time: 532989 usecs after Mon Jul 20 11:54:58 2015
Profile-Revision: 1
Session-type: Initial-Exchange
Peer-triggered: Yes
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 10.193.194.51
Sync-status: In Sync.
Status: Commit Success
Error(s):
Show Running Configuration
The following example shows the running configuration of the switch profile on the local switch:
——— PEER SWITCH-1 ———
switch-1# show running-config switch-profile
switch-profile A
sync-peers destination 30.0.0.82
interface port-channel10
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
vpc peer-link
interface Ethernet2/1
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
channel-group 10 mode active
switch-1#
——— PEER SWITCH-2 ———
switch-2# show running-config switch-profile
switch-profile A
sync-peers destination 30.0.0.81
interface port-channel10
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
vpc peer-link
interface Ethernet2/1
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
channel-group 10 mode active
switch-2#
Verify Synchronization Status
The following example shows how to verify the synchronization status between the local and the peer switch:
switch-1# show switch-profile status
switch-profile : A
-------------switch-1---------------------------------------------
Start-time: 912776 usecs after Wed Aug 19 17:03:43 2015
End-time: 868379 usecs after Wed Aug 19 17:03:48 2015
Profile-Revision: 4
Session-type: Commit
Session-subtype: -
Peer-triggered: No
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 30.0.0.82
Sync-status: In sync
Status: Commit Success
Error(s):
Create Switch Profile on Local and Peer Switch
The following example shows how to create a successful switch profile configuration on a local and a peer switch, including
configuring QoS policies, a vPC peer link, and a vPC in a switch profile.
-
Enable CFS distribution on the local and the peer switch and configure the destination IP address of the switch that you
want to synchronize with, such as the management interface on the switch.
—Local switch-1#---
switch-1# configure terminal
switch-1(config)# cfs ipv4 distribute
switch-1(config)# interface mgmt 0
switch-1(config-if)# ip address 30.0.0.81/8
—Peer switch-2#--
switch-2# configure terminal
switch-2(config)# cfs ipv4 distribute
switch-2(config)# interface mgmt 0
switch-2(config-if)# ip address 30.0.0.82/8
-
Create a new switch profile on the local and the peer switch.
—Local switch-1#---
switch-1# config sync
switch-1(config-sync)# switch-profile A
Switch-Profile started, Profile ID is 1
switch-1(config-sync-sp)# sync-peers destination 30.0.0.82
switch-1(config-sync-sp)# end
—Peer switch-2#--
switch-1# config sync
switch-1(config-sync)# switch-profile A
Switch-Profile started, Profile ID is 1
switch-1(config-sync-sp)# sync-peers destination 30.0.0.81
switch-1(config-sync-sp)# end
-
Verify that the switch profiles are the same on the local and the peer switch.
switch-1(config-sync-sp)# show switch-profile status
switch-profile : A
----------------------------------------------------------
Start-time: 843992 usecs after Wed Aug 19 17:00:01 2015
End-time: 770051 usecs after Wed Aug 19 17:00:03 2015
Profile-Revision: 1
Session-type: Initial-Exchange
Session-subtype: Init-Exchange-All
Peer-triggered: Yes
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 30.0.0.82
Sync-status: In sync
Status: Commit Success
Error(s):
-
Add the configuration commands to the switch profile on the local switch. The commands will be applied to the peer switch
when the commands are committed.
switch-1# config sync
switch-1(config-sync)# switch-profile A
Switch-Profile started, Profile ID is 1
switch-1(config-sync-sp)# interface port-channel 10
switch-1(config-sync-sp-if)# switchport
switch-1(config-sync-sp-if)# commit
Verification successful...
Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
Please avoid other configuration changes during this time.
Commit Successful
switch-1(config-sync)# switch-profile A
Switch-Profile started, Profile ID is 1
switch-1(config-sync-sp)# interface port-channel 10
switch-1(config-sync-sp-if)# switchport mode trunk
switch-1(config-sync-sp-if)# switchport trunk allowed vlan 10
switch-1(config-sync-sp-if)# spanning-tree port type network
switch-1(config-sync-sp-if)# vpc peer-link
switch-1(config-sync-sp-if)# switch-profile switching-mode switchname
switch-1(config-sync-sp-if)# show switch-profile buffer
switch-profile : A
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 interface port-channel10
1.1 switchport mode trunk
1.2 switchport trunk allowed vlan 10
1.3 spanning-tree port type network
1.4 vpc peer-link
switch-1(config-sync-sp-if)# commit
Verification successful...
Proceeding to apply configuration. This might take a while depending on amount of
configuration in buffer.
Please avoid other configuration changes during this time.
Commit Successful
switch-1(config-sync)# switch-profile A
Switch-Profile started, Profile ID is 1
switch-1(config-sync-sp)# interface ethernet 2/1
switch-1(config-sync-sp-if)# switchport mode trunk
switch-1(config-sync-sp-if)# switchport trunk allowed vlan 10
switch-1(config-sync-sp-if)# spanning-tree port type network
switch-1(config-sync-sp-if)# channel-group 10 mode active
-
View the buffered commands.
switch-1(config-sync-sp-if)# show switch-profile buffer
switch-profile : A
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 interface Ethernet2/1
1.1 switchport mode trunk
1.2 switchport trunk allowed vlan 10
1.3 spanning-tree port type network
1.4 channel-group 10 mode active
-
Verify the commands in the switch profile.
switch-1(config-sync-sp-if)# verify
Verification Successful
-
Apply the commands to the switch profile and synchronize the configurations between the local and the peer switch.
—Local switch-2#--
switch-1(config-sync-sp)# commit
Verification successful...
Proceeding to apply configuration. This might take a while depending on amount of
configuration in buffer.
Please avoid other configuration changes during this time.
Commit Successful
switch-1(config-sync)# end
switch-1# show running-config switch-profile
switch-profile A
sync-peers destination 30.0.0.82
interface port-channel10
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
vpc peer-link
interface Ethernet2/1
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
channel-group 10 mode active
—Peer switch-2#--
switch-2# show running-config switch-profile
switch-profile A
sync-peers destination 30.0.0.81
interface port-channel10
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
vpc peer-link
interface Ethernet2/1
switchport mode trunk
switchport trunk allowed vlan 10
spanning-tree port type network
channel-group 10 mode active
Display Switch Profile Buffer
The following example shows how to configure the switch profile buffer, the buffer-move configuration, and the buffer-delete
configuration:
switch1# config sync
switch1(config-sync)# switch-profile sp
Switch-Profile started, Profile ID is 1
switch1(config-sync-sp)# vlan 101
switch1(config-sync-sp-vlan)# ip igmp snooping querier 10.101.1.1
switch1(config-sync-sp-vlan)# exit
switch1(config-sync-sp)# mac address-table static 0000.0000.0001 vlan 101 drop
switch1(config-sync-sp)# interface Ethernet1/2
switch1(config-sync-sp-if)# switchport mode trunk
switch1(config-sync-sp-if)# switchport trunk allowed vlan 101
switch1(config-sync-sp-if)# exit
switch1(config-sync-sp)# show switch-profile sp buffer
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 vlan 101
1.1 ip igmp snooping querier 10.101.1.1
2 mac address-table static 0000.0000.0001 vlan 101 drop
3 interface Ethernet1/2
3.1 switchport mode trunk
3.2 switchport trunk allowed vlan 101
switch1(config-sync-sp)# buffer-move 3 1
switch1(config-sync-sp)# show switch-profile sp buffer
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 interface Ethernet1/2
1.1 switchport mode trunk
1.2 switchport trunk allowed vlan 101
2 vlan 101
2.1 ip igmp snooping querier 10.101.1.1
3 mac address-table static 0000.0000.0001 vlan 101 drop
switch1(config-sync-sp)# buffer-delete 1
switch1(config-sync-sp)# show switch-profile sp buffer
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
2 vlan 101
2.1 ip igmp snooping querier 10.101.1.1
3 mac address-table static 0000.0000.0001 vlan 101 drop
switch1(config-sync-sp)# buffer-delete all
switch1(config-sync-sp)# show switch-profile sp buffer
Display Successful and Unsuccessful Synchronization Between Local and Peer Switch
The following example shows how to configure the synchronization status of the switch profile on the peer switch. The first
example shows a successful synchronization, and the second example shows a peer-not-reachable status.
switch1# show switch-profile sp peer
switch1# show switch-profile sp peer 10.193.194.52
Peer-sync-status : In Sync.
Peer-status : Commit Success
Peer-error(s) :
switch1#
switch1# show switch-profile sp peer 10.193.194.52
Peer-sync-status : Not yet merged. pending-merge:1 received_merge:0
Peer-status : Peer not reachable
Peer-error(s) :
Display 'Verify and Commit' on Local and Peer Switch
The following example shows how to perform a successful verify and commit of the local and the peer switch:
switch1# config sync
switch1(config-sync)# switch-profile sp
Switch-Profile started, Profile ID is 1
switch1(config-sync-sp)# interface Ethernet1/1
switch1(config-sync-sp-if)# description foo
switch1(config-sync-sp-if)# exit
switch1(config-sync-sp)# verify
Verification Successful
switch1(config-sync-sp)# commit
Commit Successful
switch1(config-sync)# show running-config switch-profile
switch-profile sp
sync-peers destination 10.193.194.52
interface Ethernet1/1
description foo
switch1(config-sync)# show switch-profile sp status
Start-time: 171513 usecs after Wed Jul 20 17:51:28 2015
End-time: 676451 usecs after Wed Jul 20 17:51:43 2015
Profile-Revision: 3
Session-type: Commit
Peer-triggered: No
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 10.193.194.52
Sync-status: In Sync.
Status: Commit Success
Error(s):
switch1(config-sync)#
switch2# show running-config switch-profile
switch-profile sp
sync-peers destination 10.193.194.51
interface Ethernet1/1
description foo
switch2# show switch-profile sp status
Start-time: 265716 usecs after Mon Jul 20 16:51:28 2015
End-time: 734702 usecs after Mon Jul 20 16:51:43 2015
Profile-Revision: 3
Session-type: Commit
Peer-triggered: Yes
Profile-status: Sync Success
Local information:
----------------
Status: Commit Success
Error(s):
Peer information:
----------------
IP-address: 10.193.194.51
Sync-status: In Sync.
Status: Commit Success
Error(s):
Import Configurations
The following example shows how to import an interface configuration:
switch# show running-config interface Ethernet1/3
!Command: show running-config interface Ethernet1/3
!Time: Wed Jul 20 18:12:44 2015
version 7.0(3)I2(1)
interface Ethernet1/3
switchport mode trunk
switchport trunk allowed vlan 1-100
switch# config sync
switch(config-sync)# switch-profile sp
Switch-Profile started, Profile ID is 1
switch(config-sync-sp)# import interface Ethernet1/3
switch(config-sync-sp-import)# show switch-profile sp buffer
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 interface Ethernet1/3
1.1 switchport mode trunk
1.2 switchport trunk allowed vlan 1-100
switch(config-sync-sp-import)# verify
Verification Successful
switch(config-sync-sp-import)# commit
Commit Successful
The following example shows how to import the supported commands in a running configuration:
switch(config-sync)# switch-profile sp
Switch-Profile started, Profile ID is 1
switch(config-sync-sp)# import running-config
switch(config-sync-sp-import)# show switch-profile sp buffer
----------------------------------------------------------
Seq-no Command
----------------------------------------------------------
1 logging event link-status default
2 vlan 1
3 interface port-channel 3
3.1 switchport mode trunk
3.2 vpc peer-link
3.3 spanning-tree port type network
4 interface port-channel 30
4.1 switchport mode trunk
4.2 vpc 30
4.3 switchport trunk allowed vlan 2-10
5 interface port-channel 31
5.1 switchport mode trunk
5.2 vpc 31
5.3 switchport trunk allowed vlan 11-20
6 interface port-channel 101
6.1 switchport mode fex-fabric
6.2 fex associate 101
7 interface port-channel 102
7.1 switchport mode fex-fabric
7.2 vpc 102
7.3 fex associate 102
8 interface port-channel 103
8.1 switchport mode fex-fabric
8.2 vpc 103
8.3 fex associate 103
9 interface Ethernet1/1
10 interface Ethernet1/2
11 interface Ethernet1/3
12 interface Ethernet1/4
12.1 switchport mode trunk
12.2 channel-group 3
13 interface Ethernet1/5
13.1 switchport mode trunk
13.2 channel-group 3
14 interface Ethernet1/6
14.1 switchport mode trunk
14.2 channel-group 3
15 interface Ethernet1/7
15.1 switchport mode trunk
15.2 channel-group 3
16 interface Ethernet1/8
17 interface Ethernet1/9
17.1 switchport mode trunk
17.2 switchport trunk allowed vlan 11-20
17.3 channel-group 31 mode active
18 interface Ethernet1/10
18.1 switchport mode trunk
18.2 switchport trunk allowed vlan 11-20
18.3 channel-group 31 mode active
19 interface Ethernet1/11
20 interface Ethernet1/12
...
45 interface Ethernet2/4
45.1 fex associate 101
45.2 switchport mode fex-fabric
45.3 channel-group 101
46 interface Ethernet2/5
46.1 fex associate 101
46.2 switchport mode fex-fabric
46.3 channel-group 101
47 interface Ethernet2/6
47.1 fex associate 101
47.2 switchport mode fex-fabric
47.3 channel-group 101
48 interface Ethernet2/7
48.1 fex associate 101
48.2 switchport mode fex-fabric
48.3 channel-group 101
49 interface Ethernet2/8
49.1 fex associate 101
...
89 interface Ethernet100/1/32
90 interface Ethernet100/1/33
91 interface Ethernet100/1/34
92 interface Ethernet100/1/35
93 interface Ethernet100/1/36
...
105 interface Ethernet100/1/48