Displays a list of all the commands entered on the switch, and enables the clearing or deleting of entries.
|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.|
|end||Specifies the end of the range of command history entries to delete. Range is 1-2147483647.|
ExtremeXOS software “remembers” all the commands you entered on the switch.
Use the history command to display a list of these commands.
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:
If you use a command more than once, consecutively, the history will only list the first instance.
This command was first available in ExtremeXOS.
The ability to clear and delete entries was added in ExtremeXOS 31.4.
This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches.