User's Manual

Table Of Contents
48
Users Manual of GPL-8000
4.1.1.6. Using ftp to perform the update of software and configuration
config #copy ftpflash [ip_addr|option]
Use ftp to perform the update of software and configuration in formal program management. Use the copy
command to download a file from ftp server to switch, also to upload a file from file system of the switch to ftp
server. After you enter the command, the system will prompt you to enter the remote server name and remote
filename.
copy{ftp: [[[//login-name: [login-password]@]location]/directory]/filename}|flash: filename>}{flash<:
filename>|ftp: [[[//login-name: [login-password]@]location]/directory]/filename}<blksize><mode><type>
Parameter description
Parameter Description
login-nam Username of the ftp server
If there is no specified username, the system will
prompt you to enter the username after the copy
command is run.
login-password Password of the ftp server
If there is no specified password, the system will
prompt you to enter the password after the copy
command is run.
ip_addr IP address of the ftp server
If there is no specified IP address, the system will
prompt you to enter the IP address after executing the
copy command.
active Means to connect the ftp server in active mode.
passive Means to connect the ftp server in passive mode.
type Set the data transmission mode (ascii or binary)
Example
The following example shows a main.bin file is read from the server, written into the switch and changed into
the name switch. Bin.
config#copy ftp flash
Prompt: ftp user name[anonymous]? login-nam
Prompt: ftp user password[anonymous]? login-password
Prompt: Source file name[]?main.bin
Prompt: Remote-server ip address[]?192.168.20.1
Prompt: Destination file name[main.bin]?switch.bin
or
config#copy ftp: //login-nam: login-password@192.168.20.1/main.bin flash: switch.bin