HP 6125G HP 6125-CMW520-R2105 Release Notes - Page 16

Prerequisites, Using the switch as the FTP client, Using the switch as the FTP server

Page 16 highlights

• Using the switch as the FTP server • Using the switch as the TFTP client Prerequisites Make sure the IRF fabric and the PC can reach each other. Prepare the FTP or TFTP server program for the PC (at 10.10.110.1) by yourself. Using the switch as the FTP client This example uses the switch as the FTP client and uses the PC as the FTP server. To download the file from the PC to the master switch: 1. Run the FTP server program on the PC, configure an FTP username and password, specify the working directory, and copy the file newest.bin to the directory. 2. Perform the ftp command in user view to access the FTP server. ftp 10.10.110.1 Trying 10.10.110.1... Press CTRL+K to abort Connected to 10.10.110.1 220 FTP service ready. User(10.10.110.1:(none)):username 331 Password required for username. Password: 230 User logged in 3. Enable the binary transfer mode. [ftp] binary 200 Type set to I. 4. Perform the get command in FTP client view to download the file from the FTP server. [ftp] get newest.bin 227 Entering Passive Mode (10,10,110,1,17,97). 125 BINARY mode data connection already open, transfer starting for /newest.ipe 226 Transfer complete. 32133120 bytes received in 35 seconds (896. 0 kbyte/s) [ftp] bye 221 Server closing. Using the switch as the FTP server This example uses the switch as the FTP server and uses the PC as the FTP client. To upload the file from the PC to the master switch: 1. On the IRF fabric: a. Enable the FTP server. system-view [Sysname] ftp server enable b. Add a local FTP user account, set its password and access service type, and assign it to the user role network-admin for uploading files to the working directory of the server. 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59

13
Using the switch as the FTP server
Using the switch as the TFTP client
Prerequisites
Make sure the IRF fabric and the PC can reach each other.
Prepare the FTP or TFTP server program for the PC (at 10.10.110.1) by yourself.
Using the switch as the FTP client
This example uses the switch as the FTP client and uses the PC as the FTP server.
To download the file from the PC to the master switch:
1.
Run the FTP server program on the PC, configure an FTP username and password, specify the
working directory, and copy the file
newest.bin
to the directory.
2.
Perform the
ftp
command in user view to access the FTP server.
<Sysname> ftp 10.10.110.1
Trying 10.10.110.1...
Press CTRL+K to abort
Connected to 10.10.110.1
220 FTP service ready.
User(10.10.110.1:(none)):username
331 Password required for username.
Password:
230 User logged in
3.
Enable the binary transfer mode.
[ftp] binary
200 Type set to I.
4.
Perform the
get
command in FTP client view to download the file from the FTP server.
[ftp] get newest.bin
227 Entering Passive Mode (10,10,110,1,17,97).
125 BINARY mode data connection already open, transfer starting for /newest.ipe
226 Transfer complete.
32133120 bytes received in 35 seconds (896. 0 kbyte/s)
[ftp] bye
221 Server closing.
Using the switch as the FTP server
This example uses the switch as the FTP server and uses the PC as the FTP client.
To upload the file from the PC to the master switch:
1.
On the IRF fabric:
a.
Enable the FTP server.
<Sysname> system-view
[Sysname] ftp server enable
b.
Add a local FTP user account, set its password and access service type, and assign it to the
user role network-admin for uploading files to the working directory of the server.