HP Cisco MDS 9222i Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2 - Page 44
Copying a Configuration File from a Server to the Running Configuration
View all HP Cisco MDS 9222i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Chapter 1 Basic System Commands copy Send comments to [email protected] You can enter on the command line all necessary source- and destination-URL information and the username to use, or you can enter the copy command and have the CLI prompt you for any missing information. The entire copying process may take several minutes, depending on the network conditions and the size of the file, and differs from protocol to protocol and from network to network. The colon character (:) is required after the file system URL prefix keywords (such as bootflash). In the URL syntax for ftp:, scp:, sftp:, and tftp:, the server is either an IPv4 address or a host name. This section contains usage guidelines for the following topics: • Copying Files from a Server to Bootflash Memory, page 1-22 • Copying a Configuration File from a Server to the Running Configuration, page 1-22 • Copying a Configuration File from a Server to the Startup Configuration, page 1-22 • Copying the Running or Startup Configuration on a Server, page 1-22 Copying Files from a Server to Bootflash Memory Use the copy source-url bootflash: command (for example, copy tftp:source-url bootflash:) to copy an image from a server to the local bootflash memory. Copying a Configuration File from a Server to the Running Configuration Use the copy {ftp: | scp: | sftp: | tftp:}source-url running-config command to download a configuration file from a network server to the running configuration of the device. The configuration is added to the running configuration as if the commands were typed in the CLI. The resulting configuration file is a combination of the previous running configuration and the downloaded configuration file. The downloaded configuration file having precedence over the previous running configuration. You can copy either a host configuration file or a network configuration file. Accept the default value of host to copy and load a host configuration file containing commands that apply to one network server in particular. Enter network to copy and load a network configuration file that contains commands that apply to all network servers on a network. Copying a Configuration File from a Server to the Startup Configuration Use the copy {ftp: | scp: | sftp: | tftp:}source-url startup-config command to copy a configuration file from a network server to the router startup configuration. These commands replace the startup configuration file with the copied configuration file. Copying the Running or Startup Configuration on a Server Use the copy running-config {ftp: | scp: | sftp: | tftp:}destination-url command to copy the current configuration file to a network server that uses FTP, scp, SFTP, or TFTP. Use the copy startup-config {ftp: | scp: | stfp: | tftp:}destination-url command to copy the startup configuration file to a network server. You can use the copied configuration file copy as a backup. Examples This example shows how to copy a file within the same directory: switch# copy file1 file2 This example shows how to copy a file to another directory: switch# copy file1 my-scripts/file2 1-22 Cisco Nexus 5000 Series Command Reference OL-16599-01