Page 166 / 757 Scroll up to view Page 161 - 165
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
162
17
COMMAND HISTORY LIST
The switch history commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Command
Parameters
?
{<command>}
config command_history
<value 1-40>
show command_history
Each command is listed, in detail, in the following sections.
?
Purpose
Used to display all commands in the Command Line Interface (CLI).
Syntax
? {<command>}
Description
This command will display all of the commands available through the Command Line Interface
(CLI).
Parameters
{<command>}
– Entering the question mark with an appropriate command will list all the
corresponding parameters for the specified command, along with a brief description of the
commands function and similar commands having the same words in the command.
Restrictions
None.
Example usage:
To display all of the commands in the CLI:
Page 167 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
163
DGS-3627:admin# ?
..
?
cd
clear
clear address_binding dhcp_snoop binding_entry ports
clear arptable
clear attack_log
clear counters
clear dhcp_binding
clear fdb
clear log
clear mac_based_access_control auth_mac
clear port_security_entry port
config 802.1p default_priority
config 802.1p user_priority
config 802.1x auth_mode
config 802.1x auth_parameter ports
config 802.1x auth_protocol
config 802.1x capability ports
config 802.1x guest_vlan ports
config 802.1x init
CTRL+C ESC q
Quit
SPACE n
Next Page
Enter
Next Entry
a
All
To display the parameters for a specific command:
DGS-3627:admin# ? config stp
Command:? config stp
Command: config stp
Usage:
{maxage <value 6-40>|maxhops <value 1-20> |hellotime <value 1-10>| forwa
rddelay <value 4-30>|txholdcount <value 1-10>|fbpdu [enable|disable]|lbd [enable
|disable] |lbd_recover_timer [<value 0> | <value 60-1000000>]}
Description: Used to update the STP Global Configuration.
config stp instance_id
config stp mst_config_id
config stp mst_ports
config stp ports
config stp priority
config stp version
DGS-3627:admin#
config command_history
Purpose
Used to configure the command history.
Syntax
config command_history <value 1-40>
Description
This command is used to configure the command history.
Parameters
<value 1-40>
The number of previously executed commands maintained in the buffer. Up
to 40 of the latest executed commands may be viewed.
Restrictions
None.
Example usage
To configure the command history:
Page 168 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
164
DGS-3627:admin# config command_history 20
Command: config command_history 20
Success.
DGS-3627:admin#
show command_history
Purpose
Used to display the command history.
Syntax
show command_history
Description
This command will display the command history.
Parameters
None.
Restrictions
None.
Example usage
To display the command history:
DGS-3627:admin# show command_history
Command: show command_history
?
? show
show vlan
show command history
DGS-3627:admin#
Page 169 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
165
18
COMMAND LOGGING COMMANDS
The command logging function is used to log the commands that have successfully been configured to the switch via the
command line interface. The requirement is to log the command itself, along with information about the user account that
entered the command into the system log and the informational severity level. Commands that do not cause a change in
the switch configuration or operation (such as show) will not be logged. A save command will change the configuration
file hence it will be logged.
The Command Logging commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
enable command logging
disable command logging
show command logging
Each command is listed, in detail, in the following sections.
enable command logging
Purpose
Used to enable command logging.
Syntax
enable command logging
Description
The enable command logging command is used to enable the command logging function.
Note: When the switch is under the booting procedure, all configuration commands will not be
logged. When the user has logged in using AAA authentication, the user name should not
changed if the user has used the “enable admin” command to replace its privilege.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the command logging function:
DGS-3627:admin# enable command logging
Command: enable command logging
Success.
DGS-3627:admin#
disable command logging
Purpose
Used to disable the command logging function.
Syntax
disable command logging
Description
The disable command logging command is used to disable the command logging function.
Page 170 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
166
disable command logging
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the command logging function:
DGS-3627:admin# disable command logging
Command: disable command logging
Success.
DGS-3627:admin#
show command logging
Purpose
This command displays the switch’s general command logging configuration status
Syntax
show command logging
Description
Use this command to show the command logging configuration status.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To show the command logging configuration status:
DGS-3627:admin# show command logging
Command: show command logging
Command Logging State : Disabled
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top