Downloading A Configuration File By Using Rcp - Cisco WS-C2960-24LC-S Software Configuration Manual

Software guide
Table of Contents

Advertisement

Working with Configuration Files
For more information, see the documentation for your RCP server.

Downloading a Configuration File By Using RCP

Beginning in privileged EXEC mode, follow these steps to download a configuration file by using RCP:
Command
Step 1
Step 2
Step 3
configure terminal
Step 4
ip rcmd remote-username username
Step 5
end
Step 6
copy
rcp:[[[//[username@]location]/directory]/filename]
system:running-config
or
copy
rcp:[[[//[username@]location]/directory]/filename]
nvram:startup-config
This example shows how to copy a configuration file named host1-confg from the netadmin1 directory
on the remote server with an IP address of 172.16.101.101 and load and run those commands on the
switch:
Switch# copy rcp://netadmin1@172.16.101.101/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]
Switch#
Catalyst 2960 Switch Software Configuration Guide
B-16
Appendix B
The new username is stored in NVRAM. If you are accessing the switch through a Telnet session
and you have a valid username, this username is used, and you do not need to set the RCP username.
Include the username in the copy command if you want to specify a username for only that copy
operation.
When you upload a file to the RCP server, it must be properly configured to accept the RCP write
request from the user on the switch. For UNIX systems, you must add an entry to the .rhosts file for
the remote user on the RCP server. For example, suppose that the switch contains these
configuration lines:
hostname Switch1
ip rcmd remote-username User0
If the switch IP address translates to Switch1.company.com, the .rhosts file for User0 on the RCP
server should contain this line:
Switch1.company.com Switch1
Working with the Cisco IOS File System, Configuration Files, and Software Images
Purpose
Verify that the RCP server is properly configured by
referring to the
"Preparing to Download or Upload a
Configuration File By Using RCP" section on page
Log into the switch through the console port or a Telnet
session.
Enter global configuration mode.
This step is required only if you override the default remote
username (see Steps 4 and 5).
(Optional) Specify the remote username.
Return to privileged EXEC mode.
Using RCP, copy the configuration file from a network
server to the running configuration or to the startup
configuration file.
B-15.
OL-8603-04

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ws-c2960s-24td-lWs-c2960s-48lpd-lCatalyst 2960

Table of Contents