xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
109
15
C
ONFIGURATION
C
OMMANDS
Configuration function is used to conserve several configuration files in switch. With configuration function, user could
conserve several same configurations in switch, one for currently use, other for back up, and user could conserve several
different configurations in switch for different condition use.
The Configuration commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Command
Parameters
download cfg_fromTFTP
[<ipaddr> | <ipv6addr> | <domain_name 255>] src_file <path_filename 64>
{[<config_id 1-2> | increment]}
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>}}}}}
show config
[current_config { [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>}}}}}|config_in_nvram <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>}}}}}| information]
config configuration
config_id <config_id 1-2> [delete | boot_up | active]
save config
<config_id 1-2>
Each command is listed, in detail, in the following sections.
download cfg_fromTFTP
Purpose
Used to down load a switch configuration file from TFTP server
Syntax
download cfg_fromTFTP [<ipaddr> | <ipv6addr> | <domain_name 255>] src_file
<path_filename 64> {[<config_id 1-2> | increment]}
Description
This command is used to download a config file from a TFTP server. For projects that
support file system, the stored file name must be specified, for projects that support multiple
configurations, the configuration ID can be specified. If the configuration ID is not specified,
the boot up configuration is implied.
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.
src_file
- The pathname specifies the DOS pathname on the TFTP server. It can be a relative
pathname or an absolute pathname.
config_id
- Specifies the configuration file ID. If config_id is not specified, it refers to the boot
up configuration file.
increment
- If increment is specified, then the existing configuration will not be cleared before
applying of the new configuration. If it is not specified, then the existing configuration will be
cleared before applying of the new configuration.
Restrictions
Only Administrator and Operator-level users can issue this command.