Configuration Command List. D-Link DGS-3000 series
Oglas
Oglas
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 15 Configuration Command List
show config [effective | modified | current_config | boot_up | file <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 <pathname 64> [boot_up | active]
save {[config <pathname 64> | log | all]} show boot_file
15-1 show config
Description
This command is used to 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.
Format show config [effective | modified | current_config | boot_up | file <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>}}}}}
Parameters
effective - Shows commands which only affects the behavior of the device. For example, if STP is disabled, only
“STP is disabled” is displayed for STP configuration. All other lower level setting regarding STP is not displayed. The lower level setting will only be displayed when the higher level setting is enabled.
modified - Shows only the commands which are not default setting.
current_config - Specify the current configuration.
boot_up - Specify the list of the boot-up configuration.
file - Specify to display the configuration file.
<pathname 64> - Enter an absolute pathname on the device file system. If pathname is not specified, the boot-up configuration is implied. This name can be up to 64 characters long.
include - (Optional) Includes lines that contain the specified filter string.
exclude - (Optional) Excludes lines that contain the specified filter string.
begin - (Optional) The first line that contains the specified filter string will be the first line of the output.
<filter_string 80> - A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the
“ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain
138
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
include - (Optional) Includes lines that contain the specified filter string.
exclude - (Optional) Excludes lines that contain the specified filter string.
begin - (Optional) The first line that contains the specified filter string will be the first line of the output.
<filter_string 80> - A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the
“ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
include - (Optional) Includes lines that contain the specified filter string.
exclude - (Optional) Excludes lines that contain the specified filter string.
begin - (Optional) The first line that contains the specified filter string will be the first line of the output.
<filter_string 80> - A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the
“ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
<filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string itself cannot contain the “ character. The filter string is case sensitive. This value can be up to 80 characters long.
Restrictions
Only Administrators can issue this command.
Example
The following example illustrates how the special filters, ‘modified’, affect the configuration display:
DGS-3000-26TC:admin#show config modified
Command: show config modified
#-------------------------------------------------------------------------------
# DGS-3000-26TC Gigabit Ethernet Switch
# Configuration
#
# Firmware: Build 2.00.004
# Copyright(C) 2016 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------------------
# DEVICE
# BASIC
# ACCOUNT LIST create account admin admin admin admin
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
139
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
15-2 config configuration
Description
This command is used to select a configuration file as the next boot-up configuration or to apply a specific configuration to the system. This command is required when multiple configuration files are supported.
Format config configuration <pathname 64> [boot_up | active]
Parameters
<pathname 64> - Enter a configuration file on the device file system.
boot_up - Specify it as a boot-up file.
active - Specify to apply the configuration.
Restrictions
Only Administrators can issue this command.
Example
To configure the Switch’s configuration file as boot-up:
DGS-3000-26TC:admin#config configuration config.cfg boot_up
Command: config configuration config.cfg boot_up
Success.
DGS-3000-26TC:admin#
15-3 save
Description
This command is used to save the current configuration to a file.
Format save {[config <pathname 64> | log | all]}
Parameters
config - (Optional) Specify to save the configuration.
<pathname 64> - Enter the pathname of the indicated pathname. The pathname can be up to 64 characters long.
log - (Optional) Specify to save the log.
all - (Optional) Specify to save changes to an active , current configuration to the log file.
Restrictions
Only Administrators and Operators can issue this command.
Example
To save the current configuration to the bootup configuration file:
140
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#save
Command: save
Saving all configurations to NV-RAM.......... Done.
DGS-3000-26TC:admin#
To save the current configuration to a destination file, named 1:
DGS-3000-26TC:admin#save config 1
Command: save config 1
Saving all configurations to NV-RAM.......... Done.
DGS-3000-26TC:admin#
To save a log to NV-RAM:
DGS-3000-26TC:admin#save log
Command: save log
Saving all system logs to NV-RAM.......... Done.
DGS-3000-26TC:admin#
To save all the configurations and logs to NV-RAM:
DGS-3000-26TC:admin#save all
Command: save all
Saving all configurations and logs to NV-RAM.......... Done.
DGS-3000-26TC:admin#
15-4 show boot file
Description
This command is used to display the configuration file and firmware image assigned as boot-up files.
Format show boot_file
Parameters
None.
Restrictions
None.
Example
To display the boot file:
141
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#show boot_file
Command: show boot_file
Boot-up Firmware : /c:/runtime.had
Boot-up Configuration : /c:/config.cfg
DGS-3000-26TC:admin#
142
Prenesi
Oglas