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 NV
–
RAM 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_toTFTP –
This 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:
D G S – 3 4 2 6 : 5 # u p l o a d c f g _ f r o m T F T P 1 0 . 4 8 . 7 4 . 1 2 1 c : \ c f g \ l o g . t x t
C o m m a n d : u p l o a d c f g _ f r o m T F T P 1 0 . 4 8 . 7 4 . 1 2 1 c : \ c f g \ l o g . t x t
C o n n e c t i n g t o s e r v e r . . . . . . . . . . . . . . . . . . D o n e .
U p l o a d c o n f i g u r a t i o n . . . . . . . . . . . . . . . . . . . D o n e .
D G S – 3 4 2 6 : 5 #
Example usage:
To upload an attack log file: