H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – FTP and TFTP
H3C S7500 Series Ethernet Switches Chapter 1
FTP and TFTP Configuration
1-8
To do… Use the command… Remarks
Query a specified remote file
ls [ remotefile ]
[ localfile ]
Optional
Download a remote file
get remotefile
[ localfile ]
Optional
Upload a local file to the remote
FTP server
put localfile
[ remotefile ]
Optional
Switch to another FTP user
user username
[ password ]
Optional
Establish a control connection to
the FTP server
open { ip-address |
server-name } [ port ]
Optional
Terminate the current FTP
connection without exiting FTP
client view
disconnect
Optional
Terminate the current FTP
connection without exiting FTP
client view
close
Optional
Terminate the current FTP
connection and quit to user view
quit Optional
Terminate the current FTP
connection and quit to user view
bye
Optional
Display the on-line help on a
specified FTP command
remotehelp
[ protocol-command ]
Optional
Enable debugging for the FTP
debugging
Optional
Enable the verbose function
verbose
Optional
The verbose function
is enabled by default.
1.1.5 Configuration Example: A Switch Functioning as an FTP Client
I. Network requirements
A switch functions as an FTP client and a remote PC functions as an FTP server.
z Create a user account on the FTP server with the username “switch” and
password “hello”, and grant the Read/Write authority on the directory named
“switch” on the PC.
z Configure the IP address 1.1.1.1 for a VLAN interface on the switch, and 2.2.2.2
for the PC. Ensure that the switch and PC are reachable to each other.
The switch application named switch.bin is stored on the PC. Download it to the switch
through FTP to upgrade the switch application, and upload the switch configuration file
named config.cfg to the switch directory of the PC to backup the configuration file.