xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
110
Example usage:
To download the configuration file “desxxxx.cfg” from TFTP server at IP address 10.54.71.1:
DGS-3450:admin# download cfg_fromTFTP 10.54.71.1 src_file desxxxx.cfg
Command: download cfg_fromTFTP 10.54.71.1 src_file desxxxx.cfg
Connecting to server................... Done.
Download configuration................. Done.
DGS-3450:admin#
To download configuration file from TFTP server tftp.cfgmgmt.com:
DGS-3450:admin# download cfg_fromTFTP tftp.cfgmgmt.com src_file desxxxx.cfg
Command: download cfg_fromTFTP tftp.cfgmgmt.com src_file desxxxx.cfg
Connecting to server................... Done.
Download configuration................. Done.
DGS-3450:admin#
upload cfg_toTFTP
Purpose
Used to upload a configuration file from device to TFTP server.
Syntax
upload cfg_toTFTP [<ipaddr> | <ipv6addr> | <domain_name 255>] 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>}}}}}
Description
Used to upload a configuration file from the device to the TFTP server. Note that, for stacking
system, only the master’s configuration file is allowed to be uploaded.
The output stream of the configuration data can be filtered by the expression specified at the
end of the command. The expression can contain up to three multiple filter evaluations. A
filter evaluation begins with a filter type (include, exclude, and begin), followed by up to three
filter strings (ex: “stp”). A filter string is enclosed by symbol ". The following describes the
meaning of the each filter type.
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.
The relationship of multiple filter strings following the same filter type is OR. That is, one line
is qualified if one of specified filter strings is matched.
If more than one filter evaluation is specified; the output of filtered by the former evaluation
will be used as the input of the latter evaluation.
For example, if the following expression is specified include “stp” exclude “port”
The result of the above example is all lines that include the “stp” string but exclude the “port”
string.
Parameters
ipaddr
- The IPv4 address of the TFTP server.
ipv6addr
- The IPv6 address of the TFTP server.
domain_name
- The domain name of the host.