Operation Manual
Session Management Commands
Mobility System Software Command Reference Guide
Version 7.3
19 – 450
To clear all administrative Telnet sessions, type the following command:
MX# clear sessions telnet
This will terminate manager sessions, do you wish to continue? (y|n) [n]y
To clear Telnet client session 0, type the following command:
MX# clear sessions telnet client 0
See Also
show sessions on page 19-451
clear sessions network
Clears all network sessions for a specified username or set of usernames, MAC address or set of
MAC addresses, virtual LAN (VLAN) or set of VLANs, or session ID.
Syntax
clear sessions network { ap apnum radio radio | mac-addr mac-addr-glob |
session-id local-session-id | ssid name | user user-glob|vlan vlan-glob | wired}
Defaults
None.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
The clear sessions network command clears network sessions by deauthenticating and,
for wireless clients, disassociating them.
Examples
To clear all sessions for MAC address 00:01:02:03:04:05, type the following command:
MX# clear sessions network mac-addr 00:01:02:03:04:05
To clear session 9, type the following command:
MX-20# clear sessions network session-id 9
SM Apr 11 19:53:38 DEBUG SM-STATE: localid 9, mac 00:06:25:09:39:5d,
flags 0000012fh, to change state to KILLING
Localid 9, globalid SESSION-9-893249336 moved from ACTIVE to KILLING
(client=00:06:25:09:39:5d)
ap apnum
radio radio
Clears all network sessions for a specified MP and radio. Specify radio 1 or 2.
mac-addr mac-addr-glob Clears all network sessions for a MAC address. Specify a MAC address in
hexadecimal numbers separated by colons (:), or use the wildcard character (*) to
specify a set of MAC addresses. (For details, see “MAC Address Globs” on
page 2–7.)
session-id
local-session-id
Clears the specified 802.1X network session. To find local session IDs, use the
show sessions command.
ssid name Clears all network sessions for a named SSID.
user user-glob Clears all network sessions for a single user or set of users.
Specify a username, use the double-asterisk wildcard character (**) to specify all
usernames, or use the single-asterisk wildcard character (*) to specify a set of
usernames up to or following the first delimiter character—either an at sign (@) or
a period (.). (For details, see “User Globs” on page 2–7.)
vlan vlan-glob Clears all network sessions on a single VLAN or a set of VLANs.
Specify a VLAN name, use the double-asterisk wildcard character (**) to specify
all VLAN names, or use the single-asterisk wildcard character (*) to specify a set
of VLAN names up to or following the first delimiter character, either an at sign
(@) or a period (.). (For details, see “VLAN Globs” on page 2–8.)
wired Clears all networks sessions on a wired port.