DES-1228/ME Metro Ethernet Managed Switch CLI Reference Guide
78
upload
Purpose
Used to upload the current switch settings or the switch history log to a
TFTP.
Syntax
upload [cfg_toTFTP [<ipaddr> | <ipv6addr>] <path_filename 64>
{config_id <value 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>] <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.
The output stream 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 the symbol “
The relationship of multiple filter strings following the same filter type is
OR. That is, one line is qualified if one of the specified filter strings is
matched.
If more than one filter evaluation is specified; the output is filtered by
the former evaluation and will be used as the input of the latter
evaluation.
Parameters
cfg_toTFTP
−
Specifies that the Switch’s current settings will be
uploaded to the 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.
<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 - Specifies which cfg file ID. if cfg ID is not specified, it refers
to the boot_up CFG file.
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.
filter_string: A filter string is enclosed by the symbol ". Thus, the filter
string itself cannot contain the “character. The filter string is case
sensitive.
Restrictions
The TFTP server must be on the same IP subnet as the Switch Only
Administrator level or Operator level users can issue this command
Example usage:
To upload the spanning tree configurations to TFTP server: