display history-command all-users verbose
Function
The display history-command all-users verbose command displays details about historical commands stored in the system and enables the system to filter the commands by user name or command level.
Parameters
Parameter | Description | Value |
---|---|---|
user-name user-name | Specifies a user name. | The value is a string of 1 to 32 case-insensitive characters. |
level level | Specifies a command level. | The value is an integer ranging from 0 to 15. |
Usage Guidelines
Usage Scenario
To check the historical commands (except for display commands) entered by all users and stored in the system, run the display history-command all-users verbose command.
Precautions
This command does not display details about historical display commands.
A maximum of 1024 historical commands can be queried using this command.
If a user name in command details contains more than 32 characters, the system displays only the first 32 characters. When filtering historical commands by user name, the system checks whether the first 32 characters match the user name specified as a filter criterion. In addition, if a command contains more than 128 characters, the system displays only the first 128 characters.
Example
# Display details about the historical commands that have been entered on the terminal.
<HUAWEI> system-view
[HUAWEI] diagnose
[HUAWEI-diagnose] display history-command all-users verbose
User : root, VT1, 10.10.10.1 Time : 2017-02-07 05:49-05:13 Command : diagnose Commmand level: 3 User : root, VT1, 10.10.10.1 Time : 2017-02-07 05:49-05:13 Command : sysname HUAWEI Commmand level: 2 User : root, VT1, 10.10.10.1 Time : 2017-02-07 05:49-05:13 Command : reset history-command all-users Commmand level: 3
Item | Description |
---|---|
User | User information, including the user name, VTY channel, and IP address. If no user name is specified during login, "**" is displayed as user name information. |
Time | Date and time when a command was executed. |
Command | Executed command. |
Commmand level | Command level. |