xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
100
13
C
OMMAND
L
OGGING
C
OMMANDS
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. Information about saving or viewing the system log is described in the syslog functional
specification and is out of the scope of this UIS.
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-3450:admin# enable command logging
Command: enable command logging
Success.
DGS-3450: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.
Parameters
None.