clear session

clear session [history | sessId | all]


Terminates a Telnet and/or SSH2 sessions from the switch.

Syntax Description

history Clears the chronology of sessions that were opened.
sessId Specifies a session number from show session output to terminate.
all Terminates all sessions.



Usage Guidelines

An administrator-level account can disconnect a management session that has been established by way of a Telnet connection.

You can determine the session number of the session you want to terminate by using the show session command. The output of this command displays information about current Telnet and/or SSH2 sessions including:

Depending on the software version running on your switch, additional session information may be displayed. The session number is the first number displayed in the show session output.

When invoked to the clear the session history, the command clears the information about all the previous sessions that were logged. The information about the active sessions remains intact.


The following example terminates session 4 from the system:

clear session 4


This command was first available in ExtremeXOS 10.1.

Platform Availability

This command is available on ExtremeSwitching 5320, 5420, 5520, and 5720 series switches.