show cli history
Use this command to list the commands entered in the current session. The history buffer is cleared automatically upon reboot.
Command Syntax
Copy
show cli history
show cli history timestamped
Parameters
timestamped
Display a timestamp along with the history entry.
Command Mode
Execution mode and Privileged execution mode
Applicability
This command was introduced before OcNOS version 1.3 and the timestamped parameter was introduced in OcNOS version 6.6.0.
Examples
Copy
#show cli history
1 en
2 show ru
3 con t
4 show spanning-tree
5 exit
6 show cli history
#show cli history timestamped
[2024 Sep 13 17:43:21.122] 1 en
[2024 Sep 13 17:43:23.984] 2 show ru
[2024 Sep 13 17:43:26.715] 3 con t
[2024 Sep 13 17:43:33.068] 4 show spanning-tree
[2024 Sep 13 17:43:37.495] 5 exit
[2024 Sep 13 17:43:50.515] 6 show cli history
[2024 Sep 13 17:43:55.029] 7 show cli history timestamped