xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
69
upload
Purpose
Used to upload the current Switch settings or the Switch history log to a TFTP.
Syntax
upload [cfg_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64> {<config_id
1-2>} {[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>}}}}} | log_toTFTP [<ipaddr>| <ipv6addr>] dest_file <path_filename 64> |
attack_log_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64>]
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 IP address of the TFTP server. The TFTP server must be on the same IP
subnet as the Switch.
<ipv6addr>
- Enter the IPv6 address used here.
dest_file
- The pathname specifies the DOS pathname on the TFTP server. It can be a
relative pathname or an absolute pathname.
<path_filename 64>
- Enter the destination file pathname here. This name can be up to 64
characters long.
config_id
- Specifies configuration ID in the system; If it is not specified, it refers to the boot
up configuration ID.
unit
- Specifies which Switch unit’s attack log will be uploaded, if it is not specified, it refers to
the master unit.
<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.
log_toTFTP
−
Specifies that the Switch history log will be uploaded to the TFTP server.
attack_log_toTFTP
– Specifies that the Switch attack log will be uploaded to the TFTP
server.
<filter_string 80>
- (Optional) A filter string is enclosed by symbol ". Thus, the filter string
itself cannot contain the “character. The filter string is case sensitive. This value can be up to
80 characters long.
include
- Includes lines that contain the specified filter string.
exclude
- Excludes lines that contain the specified filter string
begin
- The first line that contains the specified filter string will be the first line of the output.
Restrictions
The TFTP server must be on the same IP subnet as the Switch. Only Administrator and
Operator-level users can issue this command.
Example usage:
To upload a configuration file:
DES-3528:admin# upload cfg_toTFTP 10.48.74.121 c:\cfg\log.txt
Command: upload cfg_toTFTP 10.48.74.121 c:\cfg\log.txt
Connecting to server................... Done.
Upload configuration...................Done.
DES-3528:admin#