FTP Client Command List. D-Link DGS-3000 series
Werbung
Werbung
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 36 FTP Client Command List
download firmware_fromFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} src_file
<path_filename 64> | ftp:<string 128 >] {dest_file <path_filename 64> {boot_up}}
upload firmware_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file
<path_filename 64> | ftp: <string 128>] {src_file <pathname 64>}
download cfg_fromFTP [[<ipaddr> | <ipv6addr>] {tcp_port < tcp_port_number 1-65535>} src_file <path_filename
64> | ftp:<string 128 >] {dest_file <path_filename 64>}
upload cfg_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file <path_filename 64>
| ftp: <string 128>] {src_file <path_filename 64>} {[include | exclude | begin] <filter_string 80> {<filter_string 80>
{<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include
| exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}}
upload log_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file <path_filename 64>
| ftp: <string 128>]
upload attack_log_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file
<path_filename 64> | ftp: <string 128>]
36-1 download firmware_fromFTP
Description
This command is used to download a firmware image file from the FTP server.
Format download firmware_fromFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} src_file
<path_filename 64> | ftp:<string 128 >] {dest_file <path_filename 64> {boot_up}}
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
src_file - Specify the source file's name and path.
<path_filename 64> - Enter the source file's name and path here. This can be up to 64 characters long.
ftp - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
dest_file - (Optional) Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
boot_up - (Optional) Specify that the firmware will be used as the boot-up firmware after the download was completed successfully.
Restrictions
Only Administrators can issue this command.
Examples
This example shows how to download a firmware file from an FTP server.
334
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin# download firmware_fromFTP 10.54.71.1 tcp_port 21 px.had
Command: download firmware_fromFTP 10.54.71.1 tcp_port 21 px.had
Connecting to server................... Done.
User(Anonymous): john
Pass:******
Download firmware...................... Done. Do not power off!
Please wait, programming flash......... Done.
DGS-3000-26TC:admin#
This example shows how to download a firmware form an FTP server using a string.
DGS-3000-26TC:admin# download firmware_fromFTP ftp: john:[email protected]:21/image/px.had
Command: download firmware_fromFTP ftp: john:[email protected]:21/image/px.had
Connecting to server................... Done.
Download firmware...................... Done. Do not power off!
Please wait, programming flash......... Done.
DGS-3000-26TC:admin#
36-2 upload firmware_toFTP
Description
This command is used to upload a firmware from the Switch to an FTP server.
Format upload firmware_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file
<path_filename 64> | ftp: <string 128>] {src_file <pathname 64>}
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
dest_file - Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
ftp - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
src_file - (Optional) Specify the source file's name and path.
<pathname 64> - Enter the source file's name and path here. This can be up to 64 characters long.
Restrictions
Only Administrators and Operators can issue this command.
Example
This example shows how to upload a firmware file from the Switch to an FTP server.
335
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin# upload firmware_toFTP ftp: john:[email protected]:21/image/image.had runtime.had
Command: upload firmware_toFTP ftp: john:[email protected]:21/image/image.had runtime.had
Connecting to server................... Done.
Upload firmware........................ Done.
DGS-3000-26TC:admin#
36-3 download cfg_fromFTP
Description
This command is used to download a configuration file from an FTP server.
Format download cfg_fromFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} src_file
<path_filename 64> | ftp: <string 128>] {dest_file <path_filename 64>}
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
src_file - Specify the source file's name and path.
<path_filename 64> - Enter the source file's name and path here. This can be up to 64 characters long.
ftp: - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
dest_file - (Optional) Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
Restrictions
Only Administrators can issue this command.
Examples
This example shows how to download the configuration file from an FTP server.
DGS-3000-26TC:admin# download cfg_fromFTP 10.54.71.1 cfg01.txt 1
Command: download cfg_fromFTP 10.54.71.1 cfg01.txt 1
Connecting to server................... Done.
User(Anonymous): john
Pass:******
Download configuration................. Done.
DGS-3000-26TC:admin#
This example shows how to download the configuration file from an FTP server using a string.
336
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin# download cfg_fromFTP ftp: john:[email protected]:21/cfg.txt 2
Command: download cfg_fromFTP ftp: john:[email protected]:21/cfg.txt 2
Connecting to server................... Done.
Download configuration................. Done.
DGS-3000-26TC:admin#
36-4 upload cfg_toFTP
Description
This command is used to upload a configuration file from the Switch to an FTP server.
Format upload cfg_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file <path_filename
64> | ftp: <string 128>] {src_file <path_filename 64>} {[include | exclude | begin] <filter_string 80>
{<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80>
{<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}}
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
dest_file - Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
ftp: - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
src_file – (Optional) Specify the source file's name and path.
<path_filename 64> - Enter the source file's name and path here. This can be up to 64 characters long.
include – (Optional) Specify to include a filter string.
exclude - (Optional) Specify to exclude a filter string.
begin - (Optional) Specify to use a filter string that begins with the string specified.
<filter_string 80> - Enter a filter string enclosed by the quotation mark symbol. Thus, the filter string itself cannot contain the quotation mark character. The filter string is case sensitive.
<filter_string 80> - Enter a filter string enclosed by the quotation mark symbol.
<filter_string 80> - Enter a filter string enclosed by the quotation mark symbol.
Restrictions
Only Administrators and Operators can issue this command.
Examples
This example shows how to upload the configuration file to an FTP server in the interactive mode.
337
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin# upload cfg_toFTP 10.90.90.15 cfg.txt
Command: upload cfg_toFTP 10.90.90.15 cfg.txt
Connecting to server................... Done.
User(Anonymous): john
Password:******
Upload configuration................... Done.
DGS-3000-26TC:admin#
This example shows how to upload the configuration file to an FTP server using a string.
DGS-3000-26TC:admin# download cfg_fromFTP ftp: john:[email protected]:21/cfg/ cfg.txt config_id 2
Command: download cfg_fromFTP ftp: john:[email protected]:21/cfg/cfg.txt config_id 2
Connecting to server................... Done.
Download configuration................. Done.
DGS-3000-26TC:admin#
This example shows how to upload the configuration file to an FTP server using a string and the filter expression.
DGS-3000-26TC:admin# download cfg_fromFTP ftp: john:[email protected]:21/cfg/cfg.txt config_id 2 include “VLAN” “ipif” exclude “fdb”
Command: download cfg_fromFTP ftp: john:[email protected]:21/cfg/cfg.txt config_id 2 include
“VLAN” “ipif” exclude “fdb”
Connecting to server................... Done.
Download configuration................. Done.
DGS-3000-26TC:admin#
36-5 upload log_toFTP
Description
This command is used to upload a log file from the Switch to an FTP server.
Format upload log_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file <path_filename
64> | ftp: <string 128>]
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
dest_file - Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
ftp - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
338
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Restrictions
Only Administrators and Operators can issue this command.
Examples
This example shows how to upload the log file to an FTP server.
DGS-3000-26TC:admin# upload log_toFTP 10.90.90.15 d:/log.txt
Command: upload log_toFTP 10.90.90.15 d:/log.txt
Connecting to server................... Done.
User(Anonymous): john
Pass:******
Upload log............................. Done.
DGS-3000-26TC:admin#
This example shows how to upload the log file to an FTP server using a string.
DGS-3000-26TC:admin# upload log_toFTP ftp: john:[email protected]:21/log/log.txt
Command: upload log_toFTP ftp: john:[email protected]:21/log/log.txt
Connecting to server................... Done.
Upload log............................. Done.
DGS-3000-26TC:admin#
36-6 upload attack_log_toFTP
Description
This command is used to upload the attack log from the Switch to an FTP server.
Format upload attack_log_toFTP [[<ipaddr> | <ipv6addr>] {tcp_port <tcp_port_number 1-65535>} dest_file
<path_filename 64> | ftp: <string 128>]
Parameters
<ipaddr> - Enter the IPv4 address of the FTP server here.
<ipv6addr> - Enter the IPv6 address of the FTP server here.
tcp_port - (Optional) Specify the TCP port number used for the FTP connection.
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 1 and 65535.
dest_file - Specify the destination file name and path.
<path_filename 64> - Enter the destination file name and path here. This can be up to 64 characters long.
ftp - Specify the FTP connection details.
<string 128> - Enter the FTP connection details here. For example, john:[email protected]:21/image/cfg.txt.
Restrictions
Only Administrators and Operators can issue this command.
Examples
This example shows how to upload the attack log to an FTP server.
339
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin# upload attack_log_toFTP 10.90.90.15 log.txt
Command: upload attack_log_toFTP 10.90.90.15 log.txt
Connecting to server................... Done.
User(Anonymous): john
Pass:******
Upload Log............................. Done.
DGS-3000-26TC:admin#
This example shows how to upload the attack log to an FTP server using a string.
DGS-3000-26TC:admin# upload attack_log_toFTP ftp: john:[email protected]:21/log.txt
Command: upload attack_log_toFTP ftp: john:[email protected]:21/log.txt
Connecting to server................... Done.
Upload log............................. Done.
DGS-3000-26TC:admin#
340
Herunterladen
Werbung