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:

  • The session number.
  • The login date and time.
  • The user name.
  • The type of Telnet session.
  • Authentication information.

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