clear services soft-gre tunnel
Syntax
clear services soft-gre tunnel (interface | tunnel-group | local-ip | remote-ip | tunnel-name | all) <statistics>
Description
Tears down tunnels that match selector defined. If subscribers are mapped to the tunnel, the tunnel is not cleared.
clear services soft-gre tunnel
will not be automatically recreated.
This command therefore should not be used to clear static soft-GRE tunnels defined for
static subscribers.Options
statistics |
Clear statistics |
interface |
Interface name to use as filter |
tunnel-group |
Tunnel group to use as filter |
local-ip |
Local ip address to use as filter |
remote-ip |
Remote ip address to use as filter |
tunnel-name |
Tunnel name to use as filter |
all |
Clear all tunnels |
Required Privilege Level
view
Sample Output
clear services soft-gre tunnel all
user@host> clear services soft-gre tunnel all Jun 12 14:04:46 {master} user@host>
There is no output on the console upon running the command. You may issue show
services soft-gre tunnel summary
command to verify if the tunnels have been
deleted. If there are subscribers mapped to a tunnel, the clear command will not delete
it. You can verify existing subscribers on a tunnel using the show
subscribers
command. In the event the clear command fails to tear down a
tunnel, no error message is returned on the console upon running the command, however an
error message is reported in the shmlog entries and tracelog:
user@host> show shmlog entries logname all | match BBE_GRE_TUNNEL_TEARDOWN_REQUEST_FAIL Jun 12 14:05:32 bbe-gre-debug 4280 Jun 12 11:01:35.938871 BBE_GRE_TUNNEL_TEARDOWN_REQUEST_FAIL IFL = ps0.3221225472,count 1 bbe-gre-debug 8566 Jun 12 14:04:46.540045 BBE_GRE_TUNNEL_TEARDOWN_REQUEST_FAIL IFL = ps0.3221225472,count 1 bbe-gre-debug 8574 Jun 12 14:04:46.540125 BBE_GRE_TUNNEL_TEARDOWN_REQUEST_FAIL IFL = ps0.3221225473,count 1 bbe-gre-debug 8594 Jun 12 14:05:10.580438 BBE_GRE_TUNNEL_TEARDOWN_REQUEST_FAIL IFL = ps0.3221225472,count 1
user@host> show log smgd| match bbe_gre_tunnel_process_teardown_request Jun 12 14:06:02 Jun 12 11:01:35.938875 bbe_gre_tunnel_process_teardown_request: Cannot teardown tunnel V4 50.40.0.23 100.0.0.1, stack count 1 Jun 12 14:04:46.540084 bbe_gre_tunnel_process_teardown_request: Cannot teardown tunnel V4 50.40.0.23 100.0.0.1, stack count 1 Jun 12 14:04:46.540127 bbe_gre_tunnel_process_teardown_request: Cannot teardown tunnel V4 50.40.0.24 100.0.0.1, stack count 1 Jun 12 14:05:10.580441 bbe_gre_tunnel_process_teardown_request: Cannot teardown tunnel V4 50.40.0.23 100.0.0.1, stack count 1
Release Information
Statement introduced in Junos OS Release 17.2R1.