clear services l2tp session
Syntax
Release Information
Command introduced before Junos OS Release 7.4.
Description
(M10i and M7i routers only) Close Layer 2 Tunneling Protocol (L2TP) sessions, or clear session statistics.
Options
- all statistics
Clear statistics for all L2TP sessions.
- interface sp-fpc/pic/port
Clear statistics for only the L2TP tunnels using the specified adaptive services interface.
- local-gateway gateway-address
Clear statistics for only the L2TP tunnels that have the specified local gateway address.
- local-gateway-name gateway-name
Clear statistics for only the L2TP tunnels that have the specified local gateway name.
- local-session-id session-id <statistics>
Identifier for the local endpoint of the L2TP session. Close the specified L2TP session, or, using the statistics keyword with this option, clear statistics for the specified session.
- local-tunnel-id tunnel-id
Clear statistics for only the L2TP tunnels that have the specified local tunnel identifier.
- peer-gateway gateway-address
Clear statistics for only the L2TP tunnels that have the specified peer gateway address.
- peer-gateway-name gateway-name
Clear statistics for only the L2TP tunnels that have the specified peer gateway name.
- statistics (all | local-session-id session-id | user username)
Clear all session statistics, clear statistics for the session using a specific local endpoint, or clear statistics for the session with a specific username.
- tunnel-group group-name
Clear statistics for only the L2TP tunnels that have the specified tunnel group.
- user username <statistics>
Username. Close the session for the specified username, or using the statistics keyword with this option, clear statistics for the session.
Required Privilege Level
view
Related Topics
List of Sample Output
clear services l2tp session statistics allOutput Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear services l2tp session statistics all
user@host> clear services l2tp session statistics
all Session 26497 statistics cleared
