To import the running configuration to a switch profile, use the import running-config command.
import running-config [ exclude interface ethernet ]
|
exclude
|
(Optional) Specifies the configurations to exclude while importing the current running configuration to a switch profile.
|
|
interface
|
(Optional) Specifies that interface configurations be excluded during the import operation.
|
|
ethernet
|
(Optional) Specifies that all Ethernet interface configurations be excluded from the running configuration during the import operation.
|
None
Switch profile configuration mode
|
Release
|
Modification
|
|---|---|
|
5.0(2)N1(1)
|
This command was introduced.
|
|
5.0(2)N2(1)
|
The
exclude interface ethernet
keywords were added.
|
The import running-config exclude interface ethernet command discards all physical interface commands in the running configuration during the import operation.
When no option is specified with the import command, an empty switch profile is created. You can then selectively add the configuration that is needed to be synchronized with the peer switch.
You can import a switch profile based on the set of commands that you want to import. The following three ways can be used to import commands that were added using the configuration terminal mode:
When you import commands to a switch profile, the switch profile buffer must be empty.
Use the commit command to complete the import process and move the configuration into the switch profile. Because configuration changes are not supported during the import process, if new commands are added before entering the commit command, the switch profile remains unsaved and the switch remains in the switch profile import mode (config-sync-sp-import). You can remove the added commands or use the abort command to stop the import. Unsaved configurations are lost if the process is aborted. New commands can be added to the switch profile after the import is complete.
This example shows how to import the running configuration to a switch profile named s5010 on switch 1 of the peer:
|
Command
|
Description
|
|---|---|
|
abort
|
Discards the current switch profile configuration.
|
|
commit
|
Commits a switch profile configuration.
|
|
copy running-config startup-config
|
Copies the running configuration to the startup configuration.
|
|
show switch-profile buffer
|
Displays information about the switch profile buffer.
|
|
show running-config switch-profile
|
Displays the running configuration for a switch profile.
|