D-Link DGS-3600 User Manual

Page of 757
xStack
®
 DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual 
 
175 
Example usage: 
To download the configuration file “desxxxx.cfg” from TFTP server at IP address 10.54.71.1: 
DGS-3627: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-3627:admin# 
 
To download configuration file from TFTP server tftp.cfgmgmt.com: 
DGS-3627: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-3627: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> {src_file {<drive_id>} <pathname 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>}}}}} 
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. 
dest_file - The pathname specifies the DOS pathname on the TFTP server. It can be a 
relative pathname or an absolute pathname.