Thursday, October 21, 2010

Display Configuration Mode Command History

In configuration mode, you can display a list of the recent commands you issued while in configuration mode. To do this, use the run show cli history command:
user@host> configure
...
[edit]
user@host# run show cli history 
    12:40:08 -- show
    12:40:17 -- edit protocols
    12:40:27 -- set isis
    12:40:29 -- edit isis
    12:40:40 -- run show cli history
[edit protocols isis]
user@host# 

By default, this command displays the last 100 commands issued in the CLI. If you specify a number with the command, it displays that number of recent commands. For example:
user@host# run show cli history 3
    12:40:08 -- show
    12:40:17 -- edit protocols
    12:40:27 -- set isis

No comments: