Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear services l2tp tunnel statistics

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear services l2tp tunnel statistics (all | interface sp-fpc/pic/port | local-gateway gateway-address | local-gateway-name gateway-name | local-tunnel-id tunnel-id | peer-gateway gateway-address | peer-gateway-name gateway-name | tunnel-group group-name)

Description

(M10i and M7i routers: LNS only. MX Series routers: LAC only.) Clear statistics for Layer 2 Tunneling Protocol (L2TP) tunnels.

Options

all

Clear statistics for all L2TP tunnels.

interface sp-fpc/pic/port

Clear statistics for only the L2TP tunnels using the specified adaptive services interface. This option is not available for L2TP LAC on MX Series routers.

local-gateway gateway-address

Clear statistics for only the L2TP tunnels associated with the local gateway with the specified address.

local-gateway-name gateway-name

Clear statistics for only the L2TP tunnels associated with the local gateway with the specified name.

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 associated with the peer gateway with the specified address.

peer-gateway-name gateway-name

Clear statistics for only the L2TP tunnels associated with the peer gateway with the specified name.

tunnel-group group-name

Clear statistics for only the L2TP tunnels in the specified tunnel group. This option is not available for L2TP LAC on MX Series routers.

Required Privilege Level

clear

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

clear services l2tp tunnel statistics all

content_copy zoom_out_map
user@host> clear services l2tp tunnel statistics all             
  Tunnel  9933 statistics cleared

Release Information

Command introduced before Junos OS Release 7.4.

Support for MX Series routers added in Junos OS Release 10.4.

footer-navigation