Page 176 / 757 Scroll up to view Page 171 - 175
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
172
Example usage:
This example sets authorization global state disabled:
DGS-3627:admin# disable authorization attributes
Command: disable authorization attributes
Success.
DGS-3627:admin#
show authorization
Purpose
Used to show authorization status.
Syntax
show authorization
Description
Used to show authorization status.
Parameters
None.
Restrictions
None.
Example usage:
This example displays authorization status:
DGS-3627:admin# show authorization
Command: show authorization
Authorization for Attributes: Enabled.
DGS-3627:admin#
config authentication server failover
Purpose
Used to configure authentication server failover function.
Syntax
config authentication server failover [local | permit | block]
Description
Description
When authentication server fails, administrator can configure to:
Use local DB to authenticate the client
The switch will resort to using local database to authenticate the client. If the client fails on
local authentication, the client is regarded as un-authenticated, otherwise, it authenticated.
Pass authentication
The client is always regarded as authenticated. If guest VLAN enabled, client will stay at
guest VLAN, otherwise, it will stay at original VLAN.
Block the client (default setting)
The client is always regarded as un-authenticated.
Parameters
local
- Use local DB to authenticate the client.
permit
- The client is always regarded as authenticated.
block
- Block the client (Default setting)
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Page 177 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
173
Set authentication server auth fail over state:
DGS-3627:admin# config authentication server failover local
Command: config authentication server failover local
Success.
DGS-3627:admin#
show authentication
Purpose
Used to show authentication global configuration.
Syntax
show authentication
Description
Used to show authentication global configuration.
Parameters
None.
Restrictions
None.
Example usage:
To show authentication:
DGS-3627:admin# show authentication
Command: show authentication
Authentication Server Failover: Block.
DGS-3627:admin# show authentication
Command: show authentication
Authentication Server Failover: Permit.
DGS-3627:admin# show authentication
Command: show authentication
Authentication Server Failover: Local.
DGS-3627:admin#
Page 178 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
174
20
CONFIGURATION COMMANDS
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>
{[increment | dest_file {<drive_id>} <pathname 64>]}
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>}}}}}
show config
[active | boot_up | {<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>}}}}}
config configuration
{<drive_id>} <pathename 64> {delete | boot_up | active}
save config
{<drive_id>} <pathname 64>
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> {[increment | dest_file {<drive_id>} <pathname 64>]}
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.
dest_file
- The pathname specifies an absolute pathname on the device. If pathname is not
specified, it refers to the boot up configuration file.
<drive_id> -
Specify the drive ID here.
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.
Page 179 / 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.
Page 180 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
176
upload cfg_toTFTP
<drive_id> -
Specify the drive ID here.
src_file
- The pathname specifies an absolute pathname on the device file system. If
pathname is not specified, it refers to the boot up configuration file.
filter_string
- A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain
the “character. The filter string is case sensitive.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To upload the boot up configuration file to TFTP server and save as “cfg”:
DGS-3627:admin# upload cfg_toTFTP 10.48.74.121 dest_file c:\cfg\DGS-3627S\cfg
Command: upload cfg_toTFTP 10.48.74.121 dest_file c:\cfg\DGS-3627S\cfg
Connecting to server... Done.
Upload Configuration... Done.
DGS-3627:admin#
In case that the designated file does not exist:
DGS-3627:admin# upload cfg_toTFTP 10.48.74.121 dest_file c:\cfg\DGS-3627S\cfg
Command: upload cfg_toTFTP 10.48.74.121 dest_file c:\cfg\DGS-3627S\cfg
The designated file does not exist.
Abort.
DGS-3627:admin#
show config
Purpose
Display the content of the current configuration, the configuration to be used in next boot, or
the configuration file specified by the command.
Syntax
show config [active | boot_up | {<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
Display the content of the current configuration, the configuration to be used in next boot, or
the configuration file specified by the command.
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.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top