A SERVICE OF

logo

xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
61
upload
Purpose Used to upload switch settings or the switch history log to a TFTP server.
Syntax
upload [cfg_toTFTP [<ipaddr> | <ipv6addr>] <path_filename 64> {<config_id 1–2>} |
log_toTFTP [<ipaddr> | <ipv6addr>] <path_filename 64>] | attack_log_toTFTP
[<ipaddr> | <ipv6addr>] <path_filename 64>] {unit <unit_id 1–12>}]
Description This command is used to upload either the Switch’s current settings or the Switch’s
history log to a TFTP server.
Parameters
cfg_toTFTP Specifies that the Switch’s current settings will be uploaded to the TFTP
server.
<ipaddr> The IPv4 address of the TFTP server. The TFTP server must be on
the same IP subnet as the Switch.
<ipv6addr> The IPv6 address of the TFTP server. The TFTP server must be on
the same IP subnet as the Switch.
<path_filename 64> Specifies the location of the Switch configuration file on
the TFTP server. This file will be replaced by the uploaded file from the Switch.
<config_id 1
2> Entering this parameter will upload configurations to be
specified, which were saved in NVRAM to TFTP server.
log_toTFTP Specifies that the switch history log will be uploaded to the TFTP server.
<ipaddr> The IP address of the TFTP server. The TFTP server must be on the
same IP subnet as the Switch.
<ipv6addr> The IPv6 address of the TFTP server. The TFTP server must be on
the same IP subnet as the Switch.
<path_filename 64> Specifies the location of the Switch configuration file on
the TFTP server. This file will be replaced by the uploaded file from the Switch.
attack_log_toTFTPThis command is used to upload a switch attack log to a TFTP
server, such as a spoofing attack.
<ipaddr> – Enter the IPv4 address of the TFTP server to which to upload the
attack log.
<ipv6addr> – Enter the IPv6 address of the TFTP server to which to upload the
attack log.
<path_filename 64> – Specifies the location of the Switch configuration file on
the TFTP server. This file will be replaced by the uploaded file from the Switch.
unit <unit_id 1–12> – Select the switch in the switch stack from where these
attack log files will be uploaded, denoted by unit ID number.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To upload a configuration file:
DGS–3426:5#upload cfg_fromTFTP 10.48.74.121 c:\cfg\log.txt
Command: upload cfg_fromTFTP 10.48.74.121 c:\cfg\log.txt
Connecting to server.................. Done.
Upload configuration...................Done.
DGS–3426:5#
Example usage:
To upload an attack log file: