Logging off anyconnect vpn sessions – Cisco ASA 5505 User Manual

Page 1730

Advertising
background image

75-20

Cisco ASA 5500 Series Configuration Guide using the CLI

Chapter 75 Configuring AnyConnect VPN Client Connections

Logging Off AnyConnect VPN Sessions

Filter Name :

hostname# vpn-sessiondb logoff

INFO: Number of sessions of type "" logged off : 1

hostname# vpn-sessiondb logoff name tester

Do you want to logoff the VPN session(s)? [confirm]

INFO: Number of sessions with name "tester" logged off : 1

Logging Off AnyConnect VPN Sessions

To log off all VPN sessions, use the vpn-sessiondb logoff command in global configuration mode:

vpn-sessiondb logoff

The following example logs off all VPN sessions:

hostname# vpn-sessiondb logoff

INFO: Number of sessions of type “” logged off : 1

You can log off individual sessions using either the name argument or the index argument:

vpn-session-db logoff name name

vpn-session-db logoff index index

The sessions that have been inactive the longest time are marked as idle (and are automatically logged
off) so that license capacity is not reached and new users can log in. If the session resumes at a later time,
it is removed from the inactive list.

You can find both the username and the index number (established by the order of the client images) in
the output of the show vpn-sessiondb anyconnect command. The following examples shows the
username lee and index number 1.

hostname# show vpn-sessiondb anyconnect

Session Type: AnyConnect

Username : lee Index : 1

Assigned IP : 192.168.246.1 Public IP : 10.139.1.2

Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel

License : AnyConnect Premium

Encryption : RC4 AES128 Hashing : SHA1

Bytes Tx : 11079 Bytes Rx : 4942

Group Policy : EngPolicy Tunnel Group : EngGroup

Login Time : 15:25:13 EST Fri Jan 28 2011

Duration : 0h:00m:15s

Inactivity : 0h:00m:00s

NAC Result : Unknown

VLAN Mapping : N/A VLAN : none

The following example terminates the session using the name option of the vpn-session-db logoff
command:

hostname# vpn-sessiondb logoff name lee

Do you want to logoff the VPN session(s)? [confirm]

INFO: Number of sessions with name “lee” logged off : 1

hostname#

Advertising