Dell Command Line Reference Guide for the S4048–ON System 9.14.2.5

PDF

show command-history

Display a buffered log of all commands all users enter along with a time stamp.

Syntax
show command-history
Defaults
none
Command Modes
  • EXEC
  • EXEC Privilege
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.2(1.0)
Introduced on the Z9500.
8.3.19.0
Introduced on the S4820T.
8.3.12.0
Introduced on the S4810.
8.3.11.1
Introduced on the Z9000.
8.1.1.0
Introduced on the E-Series.
7.6.1.0
Introduced on the S-Series.
7.5.1.0
Introduced on the C-Series and E-Series.
Usage Information

One trace log message is generated for each command. No password information is saved to this file. A command-history trace log is saved to a file after failover. Dell EMC Networking TAC analyzes this file to help identify the root cause of it.

The timestamps display format of the show command-history output changes based on the service timestamps log datetime configuration. The time format can be in uptime, local time or UTC time.

If timestamp is disabled (no service timestamps log), the command history time format is shown with timestamp defaults (service timestamps log datetime localtime) as in Example 4.

Example
Example 1: Default configuration service timestamps log datetime or service timestamps log datetime localtime
DellEMC#show clock
15:42:42.804 IST Fri May 17 2019
DellEMC(conf)#service timestamps log datetime
DellEMC# show command-history
[May 17 15:38:55]: CMD-(CLI):[service timestamps log datetime]by default from console
[May 17 15:41:40]: CMD-(CLI):[write memory]by default from console
         - Repeated 1 time.
[May 17 15:41:45]: CMD-(CLI):[interface tengigabitethernet 1/1]by default from console
[May 17 15:41:47]: CMD-(CLI):[shutdown]by default from console
[May 17 15:41:50]: CMD-(CLI):[no shutdown]by default from console
[May 17 15:42:42]: CMD-(CLI):[show clock]by default from console
[May 17 15:42:52]: CMD-(CLI):[write memory]by default from console

Example 2: service timestamps log datetime utc

DellEMC#show clock
15:47:05.661 IST Fri May 17 2019
DellEMC(conf)#service timestamps log datetime utc
DellEMC# show command-history
[May 17 10:16:53]: CMD-(CLI):[service timestamps log datetime utc]by default from console
[May 17 10:17:05]: CMD-(CLI):[show clock]by default from console
[May 17 10:17:20]: CMD-(CLI):[show running-config]by default from console
[May 17 10:17:30]: CMD-(CLI):[interface tengigabitethernet 1/2]by default from console
[May 17 10:17:32]: CMD-(CLI):[shutdown]by default from console
[May 17 10:17:34]: CMD-(CLI):[no shutdown]by default from console
[May 17 10:17:40]: CMD-(CLI):[write memory]by default from console

Example 3: service timestamps log uptime

DellEMC#show clock
15:51:47.534 IST Fri May 17 2019
DellEMC(conf)#service timestamps log uptime
DellEMC# show command-history
[1d0h24m]: CMD-(CLI):[service timestamps log uptime]by default from console
[1d0h24m]: CMD-(CLI):[interface tengigabitethernet 1/1]by default from console
[1d0h24m]: CMD-(CLI):[shutdown]by default from console
[1d0h24m]: CMD-(CLI):[no shutdown]by default from console
[1d0h25m]: CMD-(CLI):[end]by default from console
[1d0h25m]: CMD-(CLI):[write memory]by default from console

Example 4: no service timestamps log

DellEMC#show clock
15:55:12.246 IST Fri May 17 2019
DellEMC(conf)#no service timestamps log
DellEMC# show command-history
[May 17 15:53:44]: CMD-(CLI):[show logging]by default from console
[May 17 15:53:53]: CMD-(CLI):[show command-history]by default from console
[May 17 15:54:54]: CMD-(CLI):[end]by default from console
[May 17 15:55:00]: CMD-(CLI):[show logging]by default from console
[May 17 15:55:12]: CMD-(CLI):[show clock]by default from console
[May 17 15:55:22]: CMD-(CLI):[show running-config]by default from console
[May 17 15:55:27]: CMD-(CLI):[show command-history]by default from console

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\