history

history {last | -c | -d start {- {end}}

Description

Displays a list of all the commands entered on the switch, and enables the clearing or deleting of entries.

Syntax Description

last Specifies the number of most recent entries of command history to display, or all of the entries if not specified. Range is 1-2147483647.
-c Specifies to Clear all entries of command history.
-d Specifies to Delete an entry or a range of entries of command history.
start Specifies the start of the range of command history entries (or a single entry) to delete. Range is 1-2147483647.
- Range separator.
end Specifies the end of the range of command history entries to delete. Range is 1-2147483647.

Default

N/A.

Usage Guidelines

ExtremeXOS software “remembers” all the commands you entered on the switch.

Use the history command to display a list of these commands.

Example

The following command displays all the commands entered on the switch:

# history 
         1  enable ssh
         2  show switch 
         3  show ver images 
         4  show switch 
         5  configure timezone name EST -300 autodst name EDT 
         6  show switch 
         7  configure time 8 17 2021 14 58 0 
         8  save
         9  show switch 
        10  history

The following command deletes the history for the range of 4 and 5 from the previous list:

# history -d 4 - 5 

The following command clears the history:

history -c

If you use a command more than once, consecutively, the history will only list the first instance.

History

This command was first available in ExtremeXOS.

The ability to clear and delete entries was added in ExtremeXOS 31.4.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.