B-30
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Appendix B Working with the IOS File System , Configura tion Files, an d Software Ima g es
Working with Software Images
For th e R CP c opy requ es t to ex ecu te su cc es sf ully, an acco u nt mu st be de fine d o n th e n et work se rver f o r
the remote username. If the server has a directory structure, the image file is written to or copied from
the directory associated with the remote username on the server. For example, if the image file resides
in the home directory of a user on the server, specify that users name as the remote username.
Before yo u begin download ing or uplo ading an image file by using RCP, do these tasks:
Ensure that the wor kstat ion acting as th e RCP ser ver suppo rts th e remo te sh ell (rs h).
Ensure that the switch has a route to the RCP server. The switch and the server must be in the same
subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the
RCP s er ver by u s in g th e ping command.
If you are acc essin g the sw itch throu gh th e co nsole or a Te lne t session and you do not have a valid
usernam e, m ake sur e t hat the cur rent R CP u ser name is the one that you want to use f or the R CP
download. You can enter the show users privileged EXEC command to view the valid username. If
you d o no t want to use th is us er na me, cr eat e a new RC P us erna me by using the ip rcmd
remote-username username gl obal con figura tio n co mmand to be u sed du ring a ll ar chive
operations. The new username is stored in NVRAM. If you are accessing the switch through a T elnet
session an d y ou have a valid username, this use rnam e is used, and the re is no nee d to set the RCP
username. Include the username in the archive download-sw or archive upload-sw privileged
EXEC c om mand i f you wa nt to spe ci fy a use rn ame on ly f or tha t ope rat ion.
When you upload an image to the RCP to the server, it must be properly configured to accept the
RCP write reque st from the use r on the switch. For UNIX syst ems, you must ad d an entry to th e
.rhosts file for the rem ote user on the RC P server. For example, suppo se the swit ch contains th ese
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 shou ld cont ai n th is l ine :
Switch1.company.com Switch1
For more inform ation , refer to the docum entati on for your RC P server.

Downloading an Image File By Using RCP

You can download a new image file and replace or keep the current image.
Beginning in privileged EXE C m ode, f oll ow Steps 1 thr oug h 6 to download a new ima ge fr om a n R CP
server and overwrite the existing image. To keep the current image, skip Step 6.
Command Purpose
Step 1 Verify that the RCP server is properly configured by
referring to the Preparing to Do wnload or Up load an Image
File By Using RCP sect ion on page B-29.
Step 2 Log into the switch through the console port or a Telnet
session.
Step 3 configure terminal Enter glob al configura tion mod e.
This step is required only if you override the default remote
username (se e Steps 4 and 5).
Step 4 ip rc m d rem ot e - us e rn am e username (Optional) Specify the remote username.