show session

show session {{detail} {sessID}} {history}

Description

Displays the currently active Telnet and console sessions communicating with the switch.

Syntax Description

detail Specifies more detailed session information.
sessID Specifies a session ID number.
history Displays a list of all sessions.

Default

N/A.

Usage Guidelines

The show session command displays the username and IP address of the incoming Telnet session, whether a console session is currently active, and the login time. Each session is numbered.

Beginning with ExtremeXOS 11.2, the switch accepts IPv6 connections. If the incoming session is from an IPv6 address, the show session output indicates IPv6.

You can specify the following options to alter the session output:
  • detail—The output for all current sessions is displayed in a list format.

  • sessID—The output for the specified session is displayed in a list format.

  • history—Displays a list of current and previous sessions, including the user, type of session, location, and start and end time of the session.

The show session command fields are defined in the following table.
Table 1. Show Command Field Definitions
Field Definition

#

Indicates session number.

Login Time

Indicates login time of session.

User

Indicates the user logged in for each session.

Type

Indicates the type of session, for example: console, Telnet, HTTP, HTTPS.

Auth

Indicates how the user is logged in (local, RADIUS, TACACS+, sshKey, x509v3).

CLI Auth

Indicates the type of authentication (RADIUS and TACACS) if enabled.

Location

Indicates the location (IP address) from which the user logged in. The output also indicates if the location is an IPv6 address.

Example

The following command displays the active sessions on the switch:

show session

The following is sample output from this command:

CLI
#       Login Time               User     Type    Auth   Auth Location
================================================================================
1       Thu Apr 28 20:16:56 2005 admin    console local  dis  serial
*2      Thu Apr 28 23:36:20 2005 admin    ssh2    local  dis  3001::20d:88ff:fec5:ad40
3       Fri Apr 29 11:14:27 2005 admin    telnet  local  dis  10.255.44.55

The following command displays a list of current and previous sessions on the switch:

show session history

The following is sample output from this command:

Session History:
admin                            console    serial               
Mon Jun 21 09:19:00 2004  
Mon Jun 21 10:00:16 2004
admin                            console    serial               
Tue Jun 22 07:28:
11 2004  
Tue Jun 22 11:46:48 2004
admin                            console    serial               
Wed Jun 23 10:05:44 2004  
Wed Jun 23 14:11:47 2004
admin                            console    serial               
Thu Jun 24 07:07:25 2004  
Thu Jun 24 07:08:55 2004
admin                            console    serial               
Thu Jun 24 13:30:07 2004  Active

History

This command was first available in ExtremeXOS 10.1.

Support for IPv6 was added in ExtremeXOS 11.2.

Platform Availability

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