Configuration Pasting

Using paste-config, you can paste the text output of a show run show config or show running-config (i.e., show run) command into the ACLI. The paste-config command is part of the configure terminal menu. The text you enter must match exactly the output of the show config/show run command, including any indentation.

After the pasting process, the system checks for configuration errors and asks you for acceptance for the pasted configuration. Accepting the configuration is the same as using the ACLI done command or saving the pasted information to the editing cache for each configuration object. You can then edit these objects using the configuration menus, or you can save and activate the configuration.

You cannot paste:

  • Password fields
  • Privilege
  • Unlicensed features

    To paste copied configuration into the ACLI:

  1. Access the ACLI’s configure terminal branch and type paste-config.
    ORACLE# conf t
    ORACLE(configure)# paste-config
  2. Paste in the configuration data you want the system to accept, including any indentations. To stop data entry, enter <CTRL-D>.
    Paste configuration onto console.  Enter <CTRL-D> to stop.
    sip-interface
        realm-id                                net172
        sip-port
            address                                 172.16.101.11
        registration-caching                    enabled
    sip-interface
        realm-id                                net192
        sip-port
            address                                 192.168.101.11
        registration-caching                    enabled
    -----------------
    (0 errors)
  3. At the system prompt, press y to continue with accepting the configuration or press n to terminate the process. The system confirms your action.
Do you want to accept this configuration [y/n]?: y
(2 top-level objects written)
ORACLE(configure)#

During the pasting process, the system performs error checking. Error checking includes identification of:

  • Unrecognized tokens
  • Invalid values for an a parameter based on the parameter’s constraints
  • Proper value checking
  • Proper licensing

Pasted configuration that returns errors looks like this example process, in which the user has terminated the pasting process.

ORACLE# conf t
ORACLE(configure)# paste-config 
Paste configuration onto console.  Enter <CTRL-D> to stop.
sip-interface
    foobar                                  net172
    sip-port
        address                                 172.16.101.11
    registration-caching                    enabled
sip-interface
    realm-id                                net192
    sip-port
        address                                 dot.com
    registration-caching                    dot.com
dot.com
-----------------
Failed to get dot.com
% sip-interface []
  Unknown attribute: dot.com
% sip-interface []
  Save error:
Realm-id must be set
% sip-interface [net192] > sip-port [:5060/UDP]
  Could not set attribute address to "dot.com" : Invalid Input
    Value not a valid IP address
% sip-interface [net192]
  Could not set attribute registration-caching to "dot.com" : Invalid Input
    Value must be either enabled or disabled
% Unknown object: dot.com
% (root level)
  Unknown object: dot.com
(6 errors)
Do you want to accept this configuration [y/n]?: n
Operation cancelled
ORACLE(configure)#