clear session

clear session [history | sessId | all]

Description

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.

Default

N/A.

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.

Example

The following example terminates session 4 from the system:

clear session 4

History

This command was first available in ExtremeXOS 10.1.

Platform Availability

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