show forwarding-options port-mirroring
Syntax
show forwarding-options port-mirroring
<terse | detail>
<instance-name>
<self-mirror (none | start |statistics |stop)>Description
Display current state of port-mirroring instances.
Options
| terse | detail |
(Optional) Display the specified level of output. |
| instance-name |
(Optional) Display a single port-mirroring instance. |
Required Privilege Level
view
Output Fields
Table 1 lists the output fields for the show forwarding-options port-mirroring
command. Output fields are listed in the approximate order in which they appear.
|
Field Name |
Field Description |
Level of Output |
|---|---|---|
|
Instance Name |
Name of port-mirroring instance. |
All levels |
|
Instance Id |
Instance identification number. |
All levels |
|
State |
Instance state, either |
All levels |
| Input parameters | ||
|
Rate |
Rate (ratio of packets sampled). |
|
|
Run-length |
Run length (number of consecutive packets sampled). |
|
|
Maximum-packet-length |
Maximum packet length. |
|
| Output parameters | ||
|
Family |
Protocol family. |
|
|
State |
Instance state, either |
|
|
Destination |
Destination (next-hop group name). |
|
|
Next-hop |
IP address of the next hop to the destination. |
|
|
Parameters (self-mirror) |
Parameters for self-mirror :
|
|
Sample Output
- show forwarding-options port-mirroring terse
- show forwarding-options port-mirroring detail
- show forwarding-options port-mirroring self-mirror
- show forwarding-options port-mirroring self-mirror statistics
- show forwarding-options port-mirroring self-mirror start
- show forwarding-options port-mirroring self-mirror stop
show forwarding-options port-mirroring terse
user@host> show forwarding-options port-mirroring terse Instance Name Instance Id State &global_instance 1 up inst1 2 up
show forwarding-options port-mirroring detail
user@host> show forwarding-options port-mirroring detail
Instance Name: pm1
Instance Id: 2
Input parameters:
Rate : 2
Run-length : 0
Maximum-packet-length : 0
Output parameters:
Family State Destination Next-hop
inet up ge-0/0/0.0 10.1.1.2
inet6 up ge-0/0/0.0 2001:db8::2
any up ge-0/0/1.0 NAshow forwarding-options port-mirroring self-mirror
user@host> show forwarding-options port-mirroring self-mirror Instance Name: I1 Instance Id: 1 Input parameters: Rate : 1 Run-length : 0 file name :/var/tmp/bt_capture_inet_egress family :inet size :5000000 mode :circular self-mirror state : inactive <recording state inactive/active/recording>
show forwarding-options port-mirroring self-mirror statistics
user@host> show forwarding-options port-mirroring self-mirror statistics
Instance Name :I1
Instance Id :1
Parameters
file name :/var/tmp/mirror1.pcap
family :inet
size :10485760
packet count :3021
total bytes written :362130show forwarding-options port-mirroring self-mirror start
user@host> show forwarding-options port-mirroring self-mirror start
Instance Name :I1
Instance Id :1
Parameters
family :inet
start record time :2024-06-29 22:12:35
duration(seconds) :300show forwarding-options port-mirroring self-mirror stop
user@host> show forwarding-options port-mirroring self-mirror stop
Instance Name :I1
Instance Id :1
Parameters
family :inet
stop record time :2024-06-29 22:15:35
duration(seconds) :300Release Information
Command introduced in Junos OS Release 9.6.