copy

Description                                                    Copy a running-config or startup-config.

Syntax                                                                  copy {running-config | startup-config | from-profile-name}
[use-mgmt-port]
{url | to-profile-name}

Parameter

Description

running-config

Copies the commands in the running-config to the specified URL or local profile name.

startup-config

Copies the configuration profile that is currently linked to “startup-config” and saves the copy under the specified URL or local profile name.

use-mgmt-port

Uses the management interface as the source interface for the connection to the remote device. The management route table is used to reach the device. By default, the ACOS device attempts to use the data route table to reach the remote device through a data interface.

url

Copies the running-config or configuration profile to a remote device. The URL specifies the file transfer protocol, username, and directory path.

You can enter the entire URL on the command line or press Enter to display a prompt for each part of the URL. If you enter the entire URL and a password is required, you will still be prompted for the password. The password can be up to 255 characters long.

To enter the entire URL:

  tftp://host/file

  ftp://[user@]host[port:]/file

  scp://[user@]host/file

  sftp://[user@]host/file

from-profile-name

Configuration profile you are copying from.

to-profile-name

Configuration profile you are copying to.

NOTE:                                                                   You cannot use the profile name “default”. This name is reserved and always refers to the configuration profile that is stored in the image area from which the ACOS device most recently rebooted.

Default                                                                None

Mode                                                                   Configuration mode

Usage                                                                  If you are planning to configure a new ACOS device by loading the configuration from another ACOS device:

1. On the configured ACOS device, use the copy startup-config url command to save the startup-config to a remote server.

2. On the new ACOS device, use the copy url startup-config command to copy the configured ACOS device’s startup-config from the remote server onto the new ACOS device.

3. Use the reboot command (at the Privileged EXEC level) to reboot the new ACOS device.

4. Modify parameters as needed (such as IP addresses).

If you attempt to copy the configuration by copying-and-pasting it from a CLI session on the configured ACOS device, some essential parameters such as interface states will not be copied.

Example                                                            The following command copies the configuration profile currently linked to “startup-config” to a profile named “slbconfig3” and stores the profile locally on the ACOS device:

ACOS(config)#copy startup-config slbconfig3

Table of Contents

Index

Glossary

-Search-

Back