Purpose
Command or Action
rcp://[[email protected]/dir10/fileone]
nvram:startup-config
Examples
Copy RCP Running-Config
The following example copies a configuration file named host1-confg from the netadmin1 directory on the
remote server with an IP address of 172.16.101.101, and loads and runs the commands on the device:
Device#
copy rcp://[email protected]/host1-confg system:running-config
Configure using host1-confg from 172.16.101.101? [confirm]
Connected to 172.16.101.101
Loading 1112 byte file host1-confg:![OK]
Device#
%SYS-5-CONFIG: Configured from host1-config by rcp from 172.16.101.101
Copy RCP Startup-Config
The following example specifies a remote username of netadmin1. Then it copies the configuration file named
host2-confg from the netadmin1 directory on the remote server with an IP address of 172.16.101.101 to the
startup configuration.
Device#
configure terminal
Device(config)#
ip rcmd remote-username netadmin1
Device(config)#
end
Device#
copy rcp: nvram:startup-config
Address of remote host [255.255.255.255]?
172.16.101.101
Name of configuration file[rtr2-confg]?
host2-confg
Configure using host2-confg from 172.16.101.101?[confirm]
Connected to 172.16.101.101
Loading 1112 byte file host2-confg:![OK]
[OK]
Device#
%SYS-5-CONFIG_NV:Non-volatile store configured from host2-config by rcp from 172.16.101.101
What to Do Next
After you have issued the
copy
EXEC command, you may be prompted for additional information or for
confirmation of the action. The prompt displayed depends on how much information you provide in the
copy
command and the current setting of the
file prompt
global configuration command.
Copying a Configuration File from an FTP Server to the Device
To copy a configuration file from an FTP server to the running configuration or startup configuration, complete
the tasks in this section:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip ftp username username
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
160
Managing Configuration Files
Examples