4.7. Mirror Service Configuration Command Reference

4.7.1. Command Hierarchies

4.7.1.1. Mirror Configuration Commands

config
— mirror
mirror-dest service-id [type mirror-type] [create]
— no mirror-dest service-id
description description-string
endpoint endpoint-name [create]
— no endpoint endpoint-name
description description-string
revert-time {revert-time | infinite}
fc fc-name
— no fc
[no] remote-source
far-end ip-address [vc-id vc-id][ing-svc-label ing-vc-label | tldp] [icb]
— no far-end ip-address
sap sap-id [create] [no-endpoint]
sap sap-id [create] endpoint name
— no sap
[no] egress
qos policy-id
— no qos
service-name service-name
[no] shutdown
slice-size slice-size
— no slice-size
spoke-sdp sdp-id:vc-id [create] [no-endpoint]
spoke-sdp sdp-id:vc-id [create] endpoint name [icb]
— no spoke-sdp sdp-id:vc-id
egress
vc-label egress-vc-label
— no vc-label [egress-vc-label]
precedence precedence-value | primary
— no precedence
[no] shutdown

4.7.1.2. Show Commands

show
debug [application]
— mda [slot/mda] statistics [source-mda | dest-mda | mirror | security [encryption | firewall]]
mirror mirror-dest [service-id]
— service
— service-using [epipe] [ies] [vpls] [vprn] [mirror] [apipe] [fpipe] [ipipe] [cpipe] [hpipe] [sdp spd-id] [customer customer-id]

4.7.1.3. Debug Commands

debug
[no] mirror-source service-id
port {port-id | lag lag-id} {[egress] [ingress]}
— no port {port-id | lag lag-id} [egress] [ingress]
[no] shutdown

4.7.2. Command Descriptions

4.7.2.1. Configuration Commands

4.7.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>mirror>mirror-dest
config>mirror>mirror-dest>endpoint
Description 

This command creates a text description stored in the configuration file for a configuration context to help the administrator identify the content of the file.

The no form of the command removes the description string from the configuration.

Default 

no description

Parameters 
description-string—
the description character string. Allowed values are any string up to 80 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

shutdown

Syntax 
[no] shutdown
Context 
config>mirror>mirror-dest
config>mirror>mirror-dest>spoke-sdp
debug>mirror-source
Description 

The shutdown command administratively disables an entity. The operational state of the entity is disabled as well as the operational state of any entities contained within. When disabled, an entity does not change, reset, or remove any configuration settings or statistics. Many objects must be shut down before they may be deleted. Many entities must be explicitly enabled using the no shutdown command.

Unlike other commands and parameters where the default state is not indicated in the configuration file, shutdown and no shutdown are always indicated in system-generated configuration files.

The no form of the command puts an entity into the administratively enabled state.

Default 

shutdown (for mirror destination service ID)

no shutdown (for source destination service ID)

Special Cases 
Mirror destination—
When a mirror destination service ID is shut down, mirrored packets associated with the service ID are not accepted from the mirror source or remote source router. The associated mirror source is put into an operationally down mode. Mirrored packets are not transmitted out of the SAP or SDP. Each mirrored packet is silently discarded. If the mirror destination is a SAP, the SAP’s discard counters are incremented.

The shutdown command places the mirror destination service or mirror source into an administratively down state. The mirror-dest service ID must be shut down in order to delete the service ID, SAP or SDP association from the system.

The default state for a mirror destination service ID is shutdown. A no shutdown command is required to enable the service.

Mirror source—
Mirror sources do not need to be shut down in order to remove them from the system.

When a mirror source is shutdown, mirroring is terminated for all sources defined locally for the mirror-dest service ID. If the remote-source command has been executed on the mirror-dest associated with the shutdown mirror-source, mirroring continues for remote sources.

The default state for a mirror source for a given mirror-dest service ID is no shutdown. A shutdown command is required to disable mirroring from that mirror source.

4.7.2.1.2. Mirror Destination Configuration Commands

mirror-dest

Syntax 
mirror-dest service-id [type mirror-type] [create]
no mirror-dest service-id
Context 
config>mirror
Description 

This command creates a context to set up a service that is intended for packet mirroring. It is configured as a service to allow mirrored packets to be directed locally (within the same router) or remotely over the core of the network with a far-end decoding mirror encapsulation.

The mirror-dest service is composed of destination parameters that define where the mirrored packets are to be sent. It also specifies whether the defined service-id will receive mirrored packets from a far-end router over the network core.

The mirror-dest service IDs are persistent between boots of the router and are included in the configuration saves. The local sources of mirrored packets for the service ID are defined within the debug mirror-source command that references the same service-id. Up to 255 mirror-dest service IDs can be created within a single system.

When a mirror destination is configured on the 7705 SAR, the debug mirror-source service-id is automatically created and the following lines are automatically added to the config file:

Example:
debug
mirror-source service-id
no shutdown
exit
exit

The mirror-dest command is used to create or edit a service ID for mirroring purposes. If the service-id does not exist within the context of all defined services, the mirror-dest service is created and the context of the CLI is changed to that service ID. If the service-id exists within the context of defined mirror-dest services, the CLI context is changed for editing parameters on that service ID. If the service-id exists within the context of another service type, an error message is returned and the CLI context is not changed from the current context.

The no form of the command removes a mirror destination from the system. The mirror-source associations with the mirror-dest service-id do not need to be removed or shut down first. The mirror-dest service-id must be shut down before the service ID can be removed. When the service ID is removed, all mirror-source commands that have the service ID defined will also be removed from the system.

Default 

no mirror-dest

Parameters 
service-id—
identifies the service in the service domain. This ID is unique to this service and cannot be used by any other service, regardless of service type. The same service ID must be configured on every router that this particular service is defined on.

If a particular service ID already exists for a service, the same value cannot be used to create a mirror destination service ID. For example, if an Epipe service-ID 11 exists, a mirror destination service-ID 11 cannot be created.

Values—

service-id:

1 to 2147483690 or svc-name (64 characters maximum)

 

type mirror-type
the encapsulation type supported by the mirror service
Values—
ether

 

create—
keyword is mandatory when creating a mirror destination

endpoint

Syntax 
endpoint endpoint-name [create]
no endpoint endpoint-name
Context 
config>mirror>mirror-dest
Description 

This command creates mirror service endpoints. A mirror service supports two implicit endpoints managed internally by the system. The following applies to endpoint configurations.

Up to two named endpoints can be created per mirror service. The endpoint name is locally significant to the mirror service.

  1. Objects (SAPs or SDPs) may be created on the mirror service with the following limitations:
    1. two implicit endpoint objects (without explicit endpoints defined)
    2. one implicit object and multiple explicit objects with the same endpoint name
    3. multiple explicit objects each with one of two explicit endpoint names
  2. All objects become associated implicitly or indirectly with the implicit endpoints “x” and “y”.
  3. Objects may be created without an explicit endpoint defined.
  4. Objects may be created with an explicit endpoint defined.
  5. Objects without an explicit endpoint may have an explicit endpoint defined without deleting the object.
  6. Objects with an explicit endpoint defined may be dynamically moved to another explicit endpoint or may have the explicit endpoint removed.

When creating an object without an explicit endpoint, the following points apply.

  1. If an object on a mirror service has no explicit endpoint name associated, the system attempts to associate the object with implicit endpoint “x” or “y”.
  2. The implicit endpoint cannot have an existing object association.
  3. If both “x” and “y” are available, “x” will be selected.
  4. If an “x” or “y” association cannot be created, the object cannot be created.

When creating an object with an explicit endpoint name, the following points apply.

  1. The endpoint name must exist on the mirror service.
  2. If this is the first object associated with the endpoint name:
    1. the object is associated with either implicit endpoint “x” or “y”
    2. the implicit endpoint cannot have an existing object associated
    3. if both “x” and “y” are available, “x” will be selected
    4. if “x” or “y” is not available, the object cannot be created
    5. the implicit endpoint is now associated with the named endpoint
    6. if this is not the first object associated with the endpoint name, the object is associated with the named endpoint's implicit association

When changing an object’s implicit endpoint to an explicit endpoint name, the following points apply.

  1. If the explicit endpoint name is associated with an implicit endpoint, the object is moved to that implicit endpoint.
  2. If the object is the first to be associated with the explicit endpoint name:
    1. the object is associated with either implicit endpoint “x” or “y”
    2. the implicit endpoint cannot have an existing object associated (except this one)
    3. if both “x” and “y” are available, “x” will be selected
    4. if “x” or “y” is not available, the object cannot be moved to the explicit endpoint
    5. if moved, the implicit endpoint is now associated with the named endpoint

When changing an object’s explicit endpoint to another explicit endpoint name, the following points apply.

  1. If the new explicit endpoint name is associated with an implicit endpoint, the object is moved to that implicit endpoint.
  2. If the object is the first to be associated with the new explicit endpoint name:
    1. the object is associated with either implicit endpoint “x” or “y”
    2. the implicit endpoint cannot have an existing object associated (except this one)
    3. if both “x” and “y” are available, “x” will be selected
    4. if “x” or “y” is not available, the object cannot be moved to the new endpoint
    5. if moved, the implicit endpoint is now associated with the named endpoint

An explicitly named endpoint can have a maximum of one SAP and one ICB. Once a SAP is added to the endpoint, only one more object of type ICB SDP is allowed. The ICB SDP cannot be added to the endpoint if the SAP is not part of an MC-LAG instance. Conversely, a SAP that is not part of an MC-LAG instance cannot be added to an endpoint that already has an ICB SDP.

An explicitly named endpoint that does not have a SAP object can have a maximum of four SDPs, which can include any of the following: a single primary SDP, one or many secondary SDPs with precedence, and a single ICB SDP.

The user can only add a SAP configured on an MC-LAG instance to this endpoint. Conversely, the user will not be able to change the mirror service type away from mirror service without first deleting the MC-LAG SAP.

The no form of the command removes the association of a SAP or a SDP with an explicit endpoint name. When removing an object’s explicit endpoint association the following points apply.

  1. The system attempts to associate the object with implicit endpoint “x” or “y”.
  2. The implicit endpoint cannot have an existing object association (except this one).
  3. If both “x” and “y” are available, “x” will be selected.
  4. If an “x” or “y” association cannot be created, the explicit endpoint cannot be removed.
Parameters 
endpoint-name—
specifies the endpoint name up to 32 characters maximum
create—
mandatory keyword to create this entry

revert-time

Syntax 
revert-time {revert-time | infinite}
no revert-time
Context 
config>mirror>mirror-dest>endpoint
Description 

This command sets the length of time to wait before reverting to the primary SDP. This command has an effect only when used in conjunction with an endpoint that contains an SDP of type primary. It is ignored and has no effect in all other cases. The revert timer is the length of time the system waits before it switches the path of the mirror service from an active secondary SDP in the endpoint into the endpoint primary SDP after the latter comes back up.

The no form of the command resets the timer to the default value of 0. This means that the mirror service path will be switched back to the endpoint primary SDP immediately after it comes back up.

Default 

0 — the mirror service path will be switched back to the endpoint primary SDP immediately after it comes back up

Parameters 
revert-time—
the delay, in seconds, before the system switches the path of the mirror service from an active secondary SDP in the endpoint into the endpoint primary SDP after the latter comes back up
Values—
0 to 600

 

infinite—
forces the mirror service path to never revert to the primary SDP as long as the currently active secondary SDP is up

fc

Syntax 
fc fc-name
no fc
Context 
config>mirror>mirror-dest
Description 

This command specifies a forwarding class for all mirrored packets transmitted to the destination SAP or SDP overriding the default (be) forwarding class. All packets are sent with the same class of service to minimize out-of-sequence issues. The mirrored packet does not inherit the forwarding class of the original packet.

When the destination is on a SAP, a single egress queue is created that pulls buffers from the buffer pool associated with the fc-name.

When the destination is on an SDP, the fc-name defines the DiffServ-based egress queue that will be used to reach the destination. The fc-name also defines the encoded forwarding class of the encapsulation.

The fc configuration also affects how mirrored packets are treated at the ingress queuing point on the line cards. One ingress queue is used per mirror destination (service) and that will be an expedited queue if the configured FC is expedited (one of nc, h1, ef, or h2). The ingress mirror queues have no CIR but have a line-rate PIR.

The no form of the command resets the mirror-dest service ID forwarding class to the default forwarding class.

Default 

be

Parameters 
fc-name—
the name of the forwarding class with which to associate mirrored service traffic. The forwarding class name must already be defined within the system. If the fc-name does not exist, an error will be returned and the fc command will have no effect. If the fc-name does exist, the forwarding class associated with the fc-name will override the default forwarding class.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

remote-source

Syntax 
[no] remote-source
Context 
config>mirror>mirror-dest
Description 

This command is used to enable remote source configuration on a destination router in a remote mirroring solution. The mirroring (packet copy) is performed on the source router and sent via an SDP to the destination router. Remote mirroring requires remote-source configuration on the destination router.

Remote mirroring allows a destination router to terminate SDPs from multiple remote source routers. This allows consolidation of packet sniffers/analyzers at a single or small set of points in a network.

A remote-source entry must be configured on the destination router for each source router from which mirrored traffic is being sent via SDPs.

A mirror destination service that is configured for a destination router must not be configured for a source router.

Remote-source configuration is only used when a source router is sending mirrored traffic to a destination router via SDPs.

Only a far-end type of remote-source entry can be configured.

Certain remote-source types are applicable with certain SDP types. For descriptions of the command usage in the mirror-dest context, see spoke-sdp.

The no form of the command removes all remote-source entries.

Default 

no remote-source

far-end

Syntax 
far-end ip-address [vc-id vc-id] [ing-svc-label ing-vc-label | tldp] [icb]
no far-end ip-address
Context 
config>mirror>mirror-dest>remote-source
Description 

This command is used to configure the mirror far end on a destination router in a remote mirroring solution. See the description of the remote-source command for additional information.

The destination router should be configured with remote-source>far-end entries.

Up to 50 far-end entries can be specified.

Default 

no far-end

Parameters 
ip-address—
the service IP address (system IP address) of the remote device sending mirrored traffic to this mirror destination service. If 0.0.0.0 is specified, any remote device is allowed to send to this service.
Values—
1.0.0.1 to 223.255.255.254

 

vc-id —
the virtual circuit identifier of the remote source. For mirror services, the vc-id defaults to the service-id. However, if the vc-id is being used by another service, a unique VC ID is required to create an SDP binding. For this purpose, the mirror service SDP binding accepts vc-ids. This VC ID must match the VC ID used on the spoke SDP that is configured on the source router.
Values—
1 to 4294967295

 

ing-svc-label ing-svc-label
specifies the ingress service label for mirrored service traffic on the far-end device for manually configured mirror service labels.

The defined ing-svc-label is entered into the ingress service label table, which causes ingress packets with that service label to be handled by this mirror-dest service.

The specified ing-svc-label must not have been used for any other service ID and must match the egress service label being used on the spoke SDP that is configured on the source router. It must be within the range specified for manually configured service labels defined on this router. It may be reused for other far-end addresses on this mirror-dest service-id.

Values—
2048 to 18431

 

tldp—
specifies that the label is obtained through signaling via LDP
icb—
specifies that the remote source is an inter-chassis backup SDP binding

sap

Syntax 
sap sap-id [create] [no-endpoint]
sap sap-id [create] endpoint name
no sap
Context 
config>mirror>mirror-dest
Description 

This command creates a SAP within a mirror destination service. The SAP is owned by the mirror destination service ID.

The SAP is defined with port and encapsulation parameters to uniquely identify the mirror SAP on the interface and on the router. The SAP may be defined on an Ethernet access port with a dot1q, null, or qinq encapsulation type.

Only one SAP can be created within a mirror-dest service ID. If the defined SAP has not been created on any service within the system, the SAP is created and the context of the CLI will change to the newly created SAP. In addition, the port cannot be a member of a multi-link bundle, APS group, IMA bundle, or microwave link.

If the defined SAP exists in the context of another service ID, an error is generated.

Mirror destination SAPs can be created on Ethernet interfaces that have been defined as access interfaces. If the interface is defined as network, the SAP creation returns an error.

When the no form of this command is used on a SAP created by a mirror destination service ID, the SAP with the specified port and encapsulation parameters is deleted.

Default 

n/a

Parameters 
sap-id—
specifies the physical port identifier portion of the SAP definition
name
specifies the name of the endpoint associated with the SAP
no endpoint—
removes the association of a SAP or an SDP with an explicit endpoint name

egress

Syntax 
[no] egress
Context 
config>mirror>mirror-dest>sap
Description 

This command enables access to the context to associate an egress SAP Quality of Service (QoS) policy with a mirror destination SAP.

If no QoS policy is defined, the system default SAP egress QoS policy is used for egress processing.

qos

Syntax 
qos policy-id
no qos
Context 
config>mirror>mirror-dest>sap>egress
Description 

This command associates a QoS policy with an egress SAP for a mirrored service.

By default, no specific QoS policy is associated with the SAP for egress, so the default QoS policy is used.

The no form of the command removes the QoS policy association from the SAP, and the QoS policy reverts to the default.

Default 

QoS policy-id 1

Parameters 
policy-id—
QoS policy ID to associate with a SAP for the mirrored service. The policy ID must already exist.
Values—
1 to 65535 or policy-name

 

service-name

Syntax 
service-name service-name
no service-name
Context 
config>mirror>mirror-dest
Description 

This command specifies an existing service name, which adds a name identifier to a given service. The service name can be used to reference the service in configuration and show commands. This helps the service provider/administrator to identify and manage services.

Parameters 
service-name—
the name of the existing service

slice-size

Syntax 
slice-size slice-size
no slice-size
Context 
config>mirror>mirror-dest
Description 

This command enables mirrored frame truncation and specifies the maximum size, in bytes, of a mirrored frame that can be transmitted to the mirror destination.

This command enables mirroring larger frames than the destination packet decoding equipment can handle. It also allows conservation of mirroring resources by limiting the size of the packet stream through the router and the core network.

When defined, the mirror slice-size creates a threshold that truncates a mirrored frame to a specific size. For example, if the value of 256 bytes is defined, a frame larger than 256 bytes will only have the first 256 bytes transmitted to the mirror destination. The original frame is not affected by the truncation. The mirrored frame size may increase if encapsulation information is added during transmission through the network core or out the mirror destination SAP to the packet/protocol decoding equipment.

The actual capability of the router to transmit a sliced or non-sliced frame is also dictated by the mirror destination SDP path-mtu and/or the mirror destination SAP physical MTU. Packets that require a larger MTU than the mirroring destination supports are discarded if the defined slice-size does not truncate the packet to an acceptable size.

The no form of the command disables mirrored packet truncation.

Default 

no slice-size

Parameters 
bytes—
the number of bytes to which mirrored frames will be truncated, expressed as a decimal integer
Values—
128 to 9216

 

spoke-sdp

Syntax 
spoke-sdp sdp-id:vc-id [create] [no-endpoint]
spoke-sdp sdp-id:vc-id [create] endpoint name [icb]
no sdp sdp-id:vc-id
Context 
config>mirror>mirror-dest
Description 

This command binds an existing mirror SDP to the mirror destination service ID.

Spoke SDPs are used to send and receive mirrored traffic between mirror source and destination routers in a remote mirroring solution. A spoke SDP configured in the mirror service context is used on the source router.

The no form of the command removes the SDP binding from the mirror destination service.

Default 

No default SDP ID is bound to a mirror destination service ID. If no SDP is bound to the service, the mirror destination will be local and cannot be another router over the core network.

Parameters 
sdp-id:vc-id —
locally unique SDP identification (ID) number. The SDP ID must exist. If the SDP ID does not exist, an error will occur and the command will not execute.

For mirror services, the vc-id defaults to the service-id. However, there are scenarios where the vc-id is being used by another service. In this case, the SDP binding cannot be created. To avoid this, the mirror service SDP binding accepts vc-ids.

Values—
1 to 17407

 

name
specifies the name of the endpoint associated with the SAP
no endpoint—
removes the association of a SAP or an SDP with an explicit endpoint name
icb—
indicates that the SDP is of type Inter-Chassis Backup (ICB). This is a special pseudowire used for MC-LAG and pseudowire redundancy applications.

An explicitly named endpoint can have a maximum of one SAP and one ICB. Once a SAP is added to the endpoint, only one more object of type ICB SDP is allowed. The ICB SDP cannot be added to the endpoint if the SAP is not part of an MC-LAG instance. This means that all other SAP types cannot exist on the same endpoint as an ICB SDP since a non-Ethernet SAP cannot be part of an MC-LAG instance. Conversely, a SAP that is not part of an MC-LAG instance cannot be added to an endpoint that already has an ICB SDP.

An explicitly named endpoint, which does not have a SAP object, can have a maximum of four SDPs, which can include any of the following: a single primary SDP, one or many secondary SDPs with precedence, and a single ICB SDP.

Default—
null. The user should explicitly configure this option at creation time. The user can remove the ICB type by re-entering the SDP configuration without the icb keyword.

egress

Syntax 
egress
Context 
config>mirror>mirror-dest>spoke-sdp
Description 

This command enters the context to configure spoke SDP egress parameters.

vc-label

Syntax 
vc-label egress-vc-label
no vc-label [egress-vc-label]
Context 
config>mirror>mirror-dest>spoke-sdp>egress
Description 

This command configures the spoke-SDP egress VC label.

Parameters 
egress-vc-label—
a VC egress value that indicates a specific connection
Values—
16 to 1048575

 

precedence

Syntax 
precedence precedence-value | primary
no precedence
Context 
config>mirror>mirror-dest>spoke-sdp
Description 

This command indicates that the SDP is of type secondary with a specific precedence value or is of type primary.

The mirror service always uses the primary type as the active pseudowire and only switches to a secondary pseudowire when the primary is down. The mirror service switches the path back to the primary pseudowire when it is back up. The user can configure a timer to delay reverting back to primary or to never revert back.

If the active pseudowire goes down, the mirror service switches the path to a secondary SDP with the lowest precedence value. That is, secondary SDPs that are operationally up are considered in the order of their precedence value, 1 being the lowest value and 4 being the highest value. If the precedence value is the same, the SDP with the lowest SDP ID is selected.

An explicitly named endpoint can have a maximum of one SAP and one ICB. Once a SAP is added to the endpoint, only one more object of type ICB SDP is allowed. An explicitly named endpoint, which does not have a SAP object, can have a maximum of four SDPs, which can include any of the following: a single primary SDP, one or many secondary SDPs with precedence, and a single ICB SDP.

An SDP is created with type secondary and with the lowest precedence value of 4.

Parameters 
precedence-value—
the precedence of the SDP
Values—
1 to 4

 

primary—
a precedence value that assigns the SDP the lowest precedence and enables revertive behavior

4.7.2.2. Show Commands

Note:

The following command outputs are examples only; actual displays may differ depending on supported functionality and user configuration.

debug

Syntax 
debug [application]
Context 
show
Description 

This command displays set debug points.

Parameters 
application—
display which debug points have been set for the specified application
Values—
atm, bgp, cisco-hdlc, cmpv2, diameter, ethernet, filter, frame-relay, igmp, ip, ipsec, isis, lag, ldp, local-dhcp-server, mcast-management, mirror, mld, mpls, mtrace, oam, ocsp, open-flow, ospf, ospf3, pim, ppp, radius, radius-proxy, rip, rsvp, service, snmp, subscriber-mgmt, system, vrrp, wlan-gw

 

mirror

Syntax 
mirror mirror-dest service-id
Context 
show
Description 

This command displays information about mirror services.

Parameters 
service-id—
identifies the service in the service domain
Values—

service-id:

1 to 2147483690 or svc-name

 

Output 

The following output is an example of mirror services information, and Table 35 describes the fields.

Output Example
A:7705:Dut-B# show mirror mirror-dest 100  
===============================================================================
Mirror Service   
===============================================================================
Service Id       : 100                  Type          : Ether
Description      : 100
Admin State      : Up                   Oper State    : Up
Forwarding Class : be                   Remote Sources: Yes
Slice            : 0
Destination SAP  : 1/1/2:100.150        Egr QoS Policy: 3
===============================================================================
Mirror Services SDP   
===============================================================================
SdpId       IP Addr         CfgLabel    Signal    EgrLabel      
-------------------------------------------------------------------------------
No Matching Entries      
===============================================================================
-------------------------------------------------------------------------------
Remote Sources      
-------------------------------------------------------------------------------
Far End          : 1.1.1.1              Ingress Label : 131067
ICB              : false                Vc-Id         : 4294967295
Far End          : 3.3.3.3              Ingress Label : 131066
ICB              : false                Vc-Id         : 4294967294
-------------------------------------------------------------------------------
Local Sources      
-------------------------------------------------------------------------------
Admin State      : Up                  
-Port                                   1/1/2                           Egr Ing                  
===============================================================================
A:7705:Dut-B#  
Table 35:  Show Mirror Output Fields 

Label

Description

Service Id

The unique ID for the mirror service

Type

The encapsulation type

Description

The mirror service description

Admin State

Down — the service is administratively disabled

Up — the service is administratively enabled

Oper State

The operational status of the service (up or down)

Forwarding Class

The forwarding class for all packets transmitted to the mirror destination

Remote Sources

Yes — a remote source is configured

No — a remote source is not configured

Slice

The mirrored frame slice size

Destination SAP

The destination to which mirrored packets are sent

Egr Qos Policy

The egress QoS policy ID. A value of 0 indicates that no QoS policy is specified.

SdpId

The SDP configured to the remote node of the mirror destination

IP Addr

The mirror destination node IP address

CfgLabel

The statically configured egress vc label

Signal

The type of signaling used

EgrLabel

The egress label used

Far End

The IP address of the mirror source node

ICB

true — ICB is enabled

false — ICB is disabled

Ingress Label

The ingress vc label used

Vc-Id

The virtual circuit ID of the remote source

Local Sources

The details of the source ports configured on the mirror source

4.7.2.3. Debug Commands

mirror-source

Syntax 
[no] mirror-source service-id
Context 
debug
Description 

This command configures mirror source parameters for a mirrored service.

The mirror-source command is used to enable mirroring of packets specified by the association of the mirror-source to sources of packets defined within the context of the mirror destination service ID. The mirror destination service must already exist within the system.

A mirrored packet cannot be mirrored to multiple destinations. If a packet matches multiple mirror source entries then the packet is mirrored to a single mirror destination service ID physical port. The precedence is structured so that the most specific match criteria has precedence over a less specific match.

The mirror-source configuration is not saved when a configuration is saved. A mirror-source manually configured within an ASCII configuration file will not be preserved if that file is overwritten by a save command. To make a mirror-source persistent between system reboots, you must define the mirror-source within a file associated with a config exec command.

By default, all mirror-dest service IDs have a mirror-source associated with them. The mirror-source is not technically created with this command. Instead, the service ID provides a contextual node for storing the current mirroring sources for the associated mirror-dest service ID. The mirror-source is created for the mirror service when the operator enters the debug>mirror-source service-id for the first time. The mirror-source is also automatically removed when the mirror-dest service ID is deleted from the system.

The no form of the command deletes all related source commands within the context of the mirror-source service-id. The command does not remove the service ID from the system.

Default 

n/a

Parameters 
service-id—
the mirror destination service ID for which match criteria will be defined. The service-id must already exist within the system.
Values—
service-id: 1 to 2147483647 or svc-name

 

port

Syntax 
port {port-id | lag lag-id} {[egress] [ingress]}
no port {port-id | lag lag-id} [egress] [ingress]
Context 
debug>mirror-source
Description 

This command enables mirroring of traffic ingressing or egressing an Ethernet port or Link Aggregation Group (LAG).

The port command associates a port or LAG with a mirror source. The port is identified by the port-id. The defined port can be an Ethernet access, network, or hybrid port. A network port may be a single port or a LAG ID. When a LAG ID is given as the port-id, mirroring is enabled on all ports making up the LAG.

The port is only referenced in the mirror source for mirroring purposes. If the port is removed from the system, the mirroring association will be removed from the mirror source.

The same port may not be associated with multiple mirror source definitions with the ingress parameter defined. The same port may not be associated with multiple mirror source definitions with the egress parameter defined.

If the port is not associated with a mirror-source, packets on that port will not be mirrored.

The no port command disables port mirroring for the specified port. Mirroring of packets on the port may continue due to more specific mirror criteria. If the egress or ingress parameter keywords are specified in the no command, only the ingress or egress mirroring condition will be removed.

Default 

n/a

Parameters 
port-id—
the port ID
lag-id—
the LAG identifier, expressed as a decimal integer
Values—
1 to 32

 

egress—
specifies that packets egressing the port should be mirrored. Egress packets are mirrored to the mirror destination after egress packet modification.
ingress—
specifies that packets ingressing the port should be mirrored. Ingress packets are mirrored to the mirror destination prior to ingress packet modification.