Purpose
Command or Action
Do one of the following:
Step 5
• Specifies that the device running configuration file is
to be stored on an RCP server
•
copy system:running-config rcp:
[[[
//
[
username@
]
location
]
/directory
]
/filename
]
or
•
copy nvram:startup-config rcp:
[[[
//
[
username@
]
location
]
/directory
]
/filename
]
• Specifies that the device startup configuration file is
to be stored on an RCP server
Example:
Device# copy system:running-config rcp:
//[email protected]/dir-files/file1
Examples
Storing a Running Configuration File on an RCP Server
The following example copies the running configuration file named runfile2-confg to the netadmin1 directory
on the remote host with an IP address of 172.16.101.101:
Device#
copy system:running-config rcp://[email protected]/runfile2-confg
Write file runfile2-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Device#
Storing a Startup Configuration File on an RCP Server
The following example shows how to store a startup configuration file on a server by using RCP to copy the
file:
Device#
configure terminal
Device(config)#
ip rcmd remote-username netadmin2
Device(config)#
end
Device#
copy nvram:startup-config rcp:
Remote host[]?
172.16.101.101
Name of configuration file to write [start-confg]?
Write file start-confg on host 172.16.101.101?[confirm]
![OK]
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.
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
191
Managing Configuration Files
Examples