2.9. Mirror Service Command Reference

2.9.1. Command Hierarchies

2.9.1.1. Mirror Configuration Commands for 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE in Network Mode

config
— mirror
mirror-dest service-id [type mirror-type] [mirror-source-type mirror-source-type] [create]
— no mirror-dest service-id
description description-string
[no] mirror-dest [fc-name] profile {profile}
far-end ip-address [vc-id vc-id] [ing-svc-label ingress-vc-label| tldp]
— no far-end ip-address
sap sap-id [create]
— no sap
service-name service-name
[no]service-name
[no] shutdown
— no spoke-sdp sdp-id:vc-id
spoke-sdp sdp-id:vc-id [create]
egress
— no vc-label [egress-vc-label]
vc-label egress-vc-label
— no shutdown

2.9.1.2. Mirror Configuration Commands for 7210 SAS Devices Configured in Access-uplink Mode

config
— mirror
mirror-dest service-id [type mirror-type] [create]
— no mirror-dest service-id
description description-string
[no] fc [fc-name] profile {profile}
sap sap-id [create]
— no sap
service-name service-name
[no]service-name
[no] shutdown

2.9.1.3. Mirror Configuration Commands for 7210 SAS-M and 7210 SAS-T in Network Mode, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

config
— mirror
mirror-dest service-id [type encap-type] [mirror-source-type mirror-source-type] [create]
— no mirror-dest service-id
description description-string
[no] fc [fc-name] profile profile
far-end ip-address [vc-id vc-id] [ing-svc-label ingress-vc-label| tldp]
— no far-end ip-address
sap sap-id [create]
— no sap
[no] egress
[no] qos policy-id
service-name service-name
[no]service-name
[no] shutdown
— no spoke-sdp sdp-id:vc-id
spoke-sdp sdp-id:vc-id [create]
egress
— no vc-label [egress-vc-label]
vc-label egress-vc-label
— no shutdown

2.9.1.4. Show Commands

show
debug [application]
mirror mirror-dest [service-id]
— service
service-using mirror

2.9.1.5. Debug Commands

debug
[no] mirror-source service-id
[no] ip-filter ip-filter-id [entry entry-id]
[no] ipv6-filter ipv6-filter-id [entry entry-id]
[no] mac-filter mac-filter-id [entry entry-id...]
[no] port {port-id | lag lag-id} [egress] [ingress]
[no] sap sap-id {[ingress] [egress]}
[no] shutdown

2.9.2. Command Descriptions

2.9.2.1. Configuration Commands

2.9.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>mirror>mirror-dest
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode

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 this command removes the description string.

Parameters 
description-string—
Specifies the description character string. Allowed values are any string up to 80 characters 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>egress (not supported in the access-uplink operating mode)
debug>mirror-source
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode

Description 

This command administratively disables an entity. When disabled, an entity does not change, reset, or remove any configuration settings or statistics. 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 this command puts an entity into the administratively enabled state.

Default 

See the following Special Cases.

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

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 to delete the service ID, SAP 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 shutdown 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.

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

2.9.2.1.2. Mirror Destination Configuration Commands

mirror-dest

Syntax 
mirror-dest service-id [type encap-type] [mirror-source-type mirror-source-type] [create]
no mirror-dest
Context 
config>mirror
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode

Description 

This command enables the 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 device), over the core of the network and have a far end device decode the mirror encapsulation.

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

The mirror-dest service IDs are persistent between boots of the router and are included in the configuration backups. The local sources of mirrored packets for the service ID are defined within the debug mirror mirror-source command that references the same service-id.

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 CLI context is not changed from the current context.

The no form of this 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 shutdown first. The mirror-dest service-id must be shutdown before the service ID can be removed. When the service ID is removed, all mirror-source commands that have the service ID defined are also removed from the system.

Parameters 
service-id—
Specifies the service ID that 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 device 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 with the same value.

For example:

If an Epipe service-ID 11 exists, a mirror destination service-ID 11 cannot be created. If a VPLS service-ID 12 exists, a mirror destination service-ID 12 cannot be created.

If an IES service-ID 13 exists, a mirror destination service-ID 13 cannot be created.

Values—
service-id: 1 — 2147483647

 

type encap-type
Specifies the type describes the encapsulation supported by the mirror service.
Values—
ether

 

mirror-source-type
Allows scaling of mirror services that can be used only with remote mirror sources, while limiting the mirror services that can be used by local mirror sources or by both local and remote mirror sources. For more information, see Table 5. This parameter is not supported in the access-uplink operating mode.
Values—
local | remote | both

 

local—
Indicates that the mirror service can only be used by local mirror sources.
remote—
Indicates that the mirror service can only be used by remote mirror sources.
both—
Indicates that the mirror service can be used by both local and remote mirror sources.
Default—
local

fc

Syntax 
fc fc-name
no fc
Context 
config>mirror>mirror-dest
Supported Platforms 

7210 SAS-M and 7210 SAS-T in network operating mode and access-uplink operating mode, 7210 SAS-Sx/S 1/10GE (standalone and standalone-VC), and 7210 SAS-Sx 10/100GE

Description 

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

When the destination is on a SAP, it pulls buffers from the queue associated with the FC name and the shaping and scheduling treatment given to the packet is as per the user configuration for that queue.

The FC can be assigned only when the mirror source is local. When the mirror source is remote, the network QoS ingress policies that are applied to all the traffic received on the network port and network IP interface are also applied to mirror traffic.

Note:

  1. On 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE (standalone and standalone-VC), and 7210 SAS-Sx 10/100GE, all SAPs configured on a port use the port-based egress queues. If the mirror destination SAP (that is, dot1q SAP or a Q1.* SAP) is configured to share an uplink with service traffic, the mirrored copy of the traffic sent out of the Dot1q or Q1.* SAP shares the port-based egress queues with the other service traffic. The user is provided an option to assign the profile mirrored copy to the packet, so that during congestion, the mirrored copy of the packets marked as out-of-profile is dropped before in-profile service traffic (and possibly in-profile mirrored traffic, if the user has configured mirrored traffic to be in-profile). The profile is used to determine the slope policy to use for the packet and determines the packet drop precedence. Additionally, if marking is enabled, it determines the marking value to be used in the packet header.
  2. On 7210 SAS-Mxp, 7210 SAS-R6 and 7210 SAS-R12, SAP-based egress queue QoS policy is used when the port-based egress queuing is disabled on the mirrored destination SAP, allowing users to control the amount of bandwidth allocated for mirrored traffic. If port-based queuing is enabled, all SAPs configured on a port use the port-based egress queues.

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

Default 

The best effort (be) forwarding class is associated with the mirror-dest service ID and profile is out.

Parameters 
fc-name—
Specifies 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 is returned and the fc command has no effect. If the FC name does exist, the forwarding class associated with fc-name overrides the default forwarding class.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

profile—
Specifies the profile to assign to the mirrored copy of the service traffic. The profile is used to determine the slope policy to use for the packet and determines the packet's drop precedence. Additionally, if marking is enabled, it determines the marking value to be used in the packet header. A value of in marks the traffic as in-profile traffic and results in the use of high slope parameters. A value of out marks the traffic as out-of-profile and results in the use of low slope parameters.
Values—
in, out

 

Default—
out

far-end

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the remote device and configures parameters for mirror destination services on other devices allowed to mirror to the mirror destination service ID.

The far-end command is used within the context of the remote-source node. It allows the definition of accepted remote sources for mirrored packets to this mirror-dest-service-id. If a far end router has not been specified, packets sent to the router are discarded.

The far-end command is used to define a remote source that may send mirrored packets to this 7210 SAS for handling by this mirror-dest service-id.

The ing-svc-label keyword must be entered to manually define the expected ingress service label. This ingress label must also be manually defined on the far-end address through the mirror-dest SDP binding keyword egr-svc-label.

The no form of this command deletes a far-end address from the allowed remote senders to this mirror-dest service. All far-end addresses are removed when no remote-source is executed. All signaled ingress service labels are withdrawn from the far-end address affected. All manually defined ing-svc-label configurations are removed.

Parameters 
ip-address—
Specifies 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 is allowed to send to this service.
Values—
a.b.c.d
The ingress service label must be manually defined using the ing-svc-label keyword. On the far end 7210 SAS, the associated SDP egr-svc-label must be manually set and equal to the label defined in ing-svc-label.

 

vc-id vc-id
Specifies the virtual circuit identifier.
Values—
1 to 4294967295

 

ing-svc-label ing-vc-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 packet 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 far end expected specific egr-svc-label for this 7210 SAS. It must be within the range specified for manually configured service labels defined on this 7210 SAS. 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 the LDP.

remote-source

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures remote devices to mirror traffic to this device for mirror service egress. Optionally, this command deletes all previously defined remote mirror ingress devices.

The remote-source context allows the creation of a ‘sniffer farm’ to consolidate expensive packet capture and diagnostic tools to a central location. Remote areas of the access network can be monitored via normal service provisioning techniques.

Specific far-end routers can be specified with the far-end command allowing them to use this router as the destination for the same mirror-dest-service-id.

The remote-source node allows the source of mirrored packets to be on remote 7210 SAS devices. The local 7210 SAS configures its network ports to forward packets associated with the service-id to the destination SAP. When remote-source far-end addresses are configured, an SDP is not allowed as a destination.

By default, the remote-source context contains no far-end addresses. When no far-end addresses have been specified, network remote devices are not allowed to mirror packets to the local 7210 SAS as a mirror destination. Packets received from unspecified far-end addresses are discarded at network ingress.

The no form of this command restores the service-id to the default condition to not allow a remote 7210 SAS access to the mirror destination. The far-end addresses are removed without warning.

sap

Syntax 
sap sap-id [create]
no sap
Context 
config>mirror>mirror-dest
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode

Description 

This command creates a service access point (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 within the box. The specified SAP must define an Ethernet port with a null SAP or a Dot1q SAP or a Q1.* SAP.

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 changes to the newly created SAP. In addition, the port cannot be a member of a multi-link bundle, LAG, APS group or IMA bundle.

If the defined SAP exists in the context of another service ID, mirror-dest or any other type, an error is generated.

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

NOTE: When using a dot1q SAP or a Q1.* SAP as a mirror destination, users must allocated resources of another port for use by this features. Refer the mirror configuration notes preceding Configuration Notes.

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

Parameters 
sap-id—
Specifies the physical port identifier portion of the SAP definition. See Common CLI Command Descriptions for command syntax.

service-name

Syntax 
service-name service-name
no service-name
Context 
config>mirror>mirror-dest
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode

Description 

This command configures an optional service name, up to 64 characters, which adds a name identifier to a specific service to use that service name in configuration references as well as display and use service names in show commands throughout the system. This helps the service provider/administrator to identify and manage services within the 7210 SAS platforms.

All services are required to assign a service ID to initially create a service. However, either the service ID or the service name can be used o identify and reference a specific service when it is initially created.

Parameters 
service-name—
Specifies a unique service name to identify the service. Service names may not begin with an integer (0-9).

spoke-sdp

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command binds an existing (mirror) service distribution path (SDP) to the mirror destination service ID.

The operational state of the SDP dictates the operational state of the SDP binding to the mirror destination. If the SDP is shutdown or operationally down, SDP binding is down. When the binding is defined and the service and SDP are operational, the far-end router defined in the config service sdp sdp-id far-end parameter is considered part of the service ID.

Only one SDP can be associated with a mirror destination service ID. If a second sdp command is executed after a successful SDP binding, an error occurs and the command has no effect on the existing configuration. A no sdp command must be issued before a new SDP binding can be attempted.

An SDP is a logical mechanism that ties a far end router to a specific service without having to define the far-end SAP. Each SDP represents a method to reach a router.

The other method is Multi-Protocol Label Switching (MPLS) encapsulation. Routers support both signaled and non-signaled LSPs (Label Switched Path) though the network. Non-signaled paths are defined at each hop through the network. Signaled paths are protocol communicated from end to end using RSVP. Paths may be manually defined or a constraint based routing protocol (OSPF-TE or CSPF) can be used to determine the best path with specific constraints.

SDPs are created and then bound to services. Many services can be bound to a single SDP. The operational and administrative state of the SDP controls the state of the SDP binding to the service.

An egress service label (Martini VC-Label), used by the SDP to differentiate each service bound to the SDP to the far-end router, must be obtained manually or though signaling with the far end. If manually configured, it must match the ing-svc-label defined for the local router.

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

NOTE: When using remote mirroring with spoke-SDP configured as a mirror destination, users must allocated resources of another port for use by this features. Refer the mirror configuration notes preceding Configuration Notes.

The no form of this command removes the SDP binding from the mirror destination service. When removed, no packets are forwarded to the far-end (destination) router from that mirror destination service ID.

Parameters 
sdp-id[:vc-id] —
Specifies a locally unique SDP identification (ID) number. The SDP ID must exist. If the SDP ID does not exist, an error occurs and the command does 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. So, to avoid this, the mirror service SDP bindings now accepts vc-ids.

Values—
1 to 17407

 

vc-id—
Specifies the virtual circuit identifier.
Values—
1 to 4294967295

 

endpoint name
Specifies the name of the endpoint associated with the SAP.
no endpoint—
Removes the association of a SAP or a SDP with an explicit endpoint name.

egress

Syntax 
egress
Context 
config>mirror>mirror-dest>spoke-sdp
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables 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
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the spoke-SDP egress VC label.

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

 

egress

Syntax 
egress
Context 
config>mirror>sap
Supported Platforms 

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description 

This command enables the context to configure QoS egress policies for this SAP.

qos

Syntax 
[no] qos policy-id
Context 
config>mirror>sap>egress
Supported Platforms 

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description 

This command enables the context to configure the QoS policy for the mirror destination SAP egress. The SAP egress QoS policy to use is specified using the policy ID and must have been configured before associating this policy with the SAP. The SAP egress policy can be configured using the commands under the context config>qos>sap-egress.

When a SAP egress policy is associated with the SAP configured as a mirror destination, the queue associated with FC specified with the CLI command config> mirror> mirror-dest> fc is used for traffic sent out of the mirror destination SAP. The policy allows the user to specify the amount of buffers, the WRED policy, the shaping rate and the marking values to use for the mirrored copy.

Note:

On the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, this command is available only when SAP-based egress queuing is configured. The command is not available when port-based egress queuing is configured.

The no form of this command associates the default SAP egress QoS policy with the SAP.

Default 

no qos

Parameters 
policy-id—
Specifies the QoS policy to be associated with SAP egress. The QoS policy referred to by the policy-id is configured using the commands under config>qos>sap-egress.

2.9.2.1.3. Mirror Source Configuration Commands

mirror-source

Syntax 
[no] mirror-source service-id
Context 
debug
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

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-dest-service-id. The mirror destination service must already exist within the system.

A mirrored packet cannot be mirrored to multiple destinations. If a mirrored packet is correctly referenced by multiple mirror sources (for example, a SAP on one mirror-source and a port on another mirror-source), the packet is mirrored to a single mirror-dest-service-id based on the following hierarchy:

  1. Filter entry
  2. Service access port (SAP)
  3. Physical port

The hierarchy is structured so the most specific match criteria has precedence over a less specific match. For example, if a mirror-source defines a port and a SAP on that port, the SAP mirror-source is accepted and the mirror-source for the port is ignored because of the hierarchical order of precedence.

The mirror-source configuration is not saved when a configuration is saved. A mirror-source manually configured within an ASCII configuration file is not preserved if that file is overwritten by a save command. Define the mirror-source within a file associated with a config exec command to make a mirror-source persistent between system reboots.

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 svcId 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 this 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.

Parameters 
service-id—
Specifies the mirror destination service ID for which match criteria is defined. The service-id must already exist within the system.
Values—
service-id: 1 to 2147483647

 

ip-filter

Syntax 
ip-filter ip-filter-id entry entry-id [entry-id …]
no ip-filter ip-filter-id entry entry-id
Context 
debug>mirror-source
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables mirroring of packets that match specific entries in an existing IP filter.

The ip-filter command directs packets which match the defined list of entry IDs to be mirrored to the mirror destination referenced by the mirror-dest-service-id of the mirror-source.

The IP filter must already exist in order for the command to execute. Filters are configured in the config>filter context. If the IP filter does not exist, an error occurs. If the filter exists but has not been associated with a SAP or IP interface, an error is not generated but mirroring is not enabled (there are no packets to mirror). When the IP filter is defined to a SAP or IP interface, mirroring is enabled.

If the IP filter is defined as ingress, only ingress packets are mirrored. Ingress mirrored packets are mirrored to the mirror destination before any ingress packet modifications.

If the IP filter is defined as egress, only egress packets are mirrored. Egress mirrored packets are mirrored to the mirror destination after all egress packet modifications.

An entry-id within an IP filter can only be mirrored to a single mirror destination. If the same entry-id is defined multiple times, an error occurs and only the first mirror-source definition is in effect.

By default, no packets matching any IP filters are mirrored. Mirroring of IP filter entries must be explicitly defined.

The no ip-filter command, without the entry keyword, removes mirroring on all entry-id’s within the ip-filter-id.

The no command executed with the entry keyword and one or more entry-id’s, terminates mirroring of that list of entry-ids within the ip-filter-id. If an entry-id is listed that does not exist, an error occurs and the command does not execute. If an entry-id is listed that is not currently being mirrored, no error occurs for that entry-id and the command executes.

Parameters 
ip-filter-id—
Specifies the IP filter ID whose entries are mirrored. If the ip-filter-id does not exist, an error occurs and the command does not execute. Mirroring of packets commences when the ip-filter-id is defined on a SAP or IP interface.
Values—
1 to 65535

 

entry entry-id [entry-id ]—
Specifies the IP filter entries to use as match criteria for packet mirroring. The entry keyword begins a list of entry-ids for mirroring. Multiple entry-id entries may be specified with a single command. Each entry-id must be separated by a space.

If an entry-id does not exist within the IP filter, an error occurs and the command does not execute.

If the filter’s entry-id is renumbered within the IP filter definition, the old entry-id is removed but the new entry-id must be manually added to the configuration to include the new (renumbered) entry’s criteria.

Values—
1 to 65535

 

ipv6-filter

Syntax 
ipv6-filter ip-filter-id entry entry-id [entry-id …]
no ipv6-filter ip-filter-id entry entry-id
Context 
debug>mirror-source
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables mirroring of packets that match specific entries in an existing IPv6 filter.

The ipv6-filter command directs packets which match the defined list of entry IDs to be mirrored to the mirror destination referenced by the mirror-dest-service-id of the mirror-source.

The IPv6 filter must already exist in order for the command to execute. Filters are configured in the config>filter context. If the IPv6 filter does not exist, an error occurs. If the filter exists but has not been associated with a SAP or IP interface, an error is not generated but mirroring is not enabled (there are no packets to mirror). When the IPv6 filter is defined to a SAP or IP interface, mirroring is enabled.

If the IPv6 filter is defined as ingress, only ingress packets are mirrored. Ingress mirrored packets are mirrored to the mirror destination before any ingress packet modifications.

If the IPv6 filter is defined as egress, only egress packets are mirrored. Egress mirrored packets are mirrored to the mirror destination after all egress packet modifications.

An entry-id within an IPv6 filter can only be mirrored to a single mirror destination. If the same entry-id is defined multiple times, an error occurs and only the first mirror-source definition is in effect.

By default, no packets matching any IPv6 filters are mirrored. Mirroring of IPv6 filter entries must be explicitly defined.

The no ipv6-filter command, without the entry keyword, removes mirroring on all entry-ids within the ipv6-filter-id.

When the no command is executed with the entry keyword and one or more entry-ids, mirroring of that list of entry-ids is terminated within the ipv6-filter-id. If an entry-id is listed that does not exist, an error occurs and the command does not execute. If an entry-id is listed that is not currently being mirrored, no error occurs for that entry-id and the command executes.

Parameters 
ipv6-filter-id—
The IPv6 filter ID whose entries are mirrored. If the ipv6-filter-id does not exist, an error occurs and the command does not execute. Mirroring of packets commences when the ipv6-filter-id is defined on a SAP or IP interface.
Values—
1 to 65535

 

entry entry-id [entry-id ]—
Specifies the IPv6 filter entries to use as match criteria for packet mirroring. The entry keyword begins a list of entry-ids for mirroring. Multiple entry-id entries may be specified with a single command. Each entry-id must be separated by a space.

If an entry-id does not exist within the IPv6 filter, an error occurs and the command does not execute.

If the filter’s entry-id is renumbered within the IPv6 filter definition, the old entry-id is removed but the new entry-id must be manually added to the configuration to include the new (renumbered) entry’s criteria.

Values—
1 to 65535

 

mac-filter

Syntax 
mac-filter mac-filter-id entry entry-id [entry-id …]
no mac-filter mac-filter-id
no mac-filter mac-filter-id entry entry-id [entry-id …]
Context 
debug>mirror-source
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables mirroring of packets that match specific entries in an existing MAC filter.

The mac-filter command directs packets which match the defined list of entry IDs to be mirrored to the mirror destination referenced by the mirror-dest-service-id of the mirror-source.

The MAC filter must already exist in order for the command to execute. Filters are configured in the config>filter context. If the MAC filter does not exist, an error occurs. If the filter exists but has not been associated with a SAP or IP interface, an error is not generated but mirroring is not enabled (there are no packets to mirror). When the filter is defined to a SAP or MAC interface, mirroring is enabled.

If the MAC filter is defined as ingress, only ingress packets are mirrored. Ingress mirrored packets are mirrored to the mirror destination before any ingress packet modifications.

The no mac-filter command, without the entry keyword, removes mirroring on all entry-ids within the mac-filter-id.

When the no command is executed with the entry keyword and one or more entry-ids, mirroring of that list of entry-id’s is terminated within the mac-filter-id. If an entry-id is listed that does not exist, an error occurs and the command does not execute. If an entry-id is listed that is not currently being mirrored, no error occurs for that entry-id and the command executes.

Parameters 
mac-filter-id—
Specifies the MAC filter ID whose entries are mirrored. If the mac-filter-id does not exist, an error occurs and the command does not execute. Mirroring of packets commences when the mac-filter-id is defined on a SAP.
Values—
1 to 65535

 

entry entry-id [entry-id ]—
Specifies the MAC filter entries to use as match criteria for packet mirroring. The entry keyword begins a list of entry-id’s for mirroring. Multiple entry-id entries may be specified with a single command. Each entry-id must be separated by a space. Up to 8 entry IDs may be specified in a single command.

Each entry-id must exist within the mac-filter-id. If the entry-id is renumbered within the MAC filter definition, the old entry-id is removed from the list and the new entry-id needs to be manually added to the list if mirroring is still desired.

If no entry-id entries are specified in the command, mirroring does not occur for that MAC filter ID. The command has no effect.

Values—
1 to 65535

 

port

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

Supported on all 7210 SAS platforms as described in this document

Description 

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

The port command associates a port or LAG to a mirror source. The port is identified by the port-id. The defined port may be Ethernet, access or access uplink. access. A port may be a single port or a Link Aggregation Group (LAG) ID. When a LAG ID is specified as the port-id, mirroring is enabled on all ports making up the LAG. Either a LAG port member or the LAG port can be mirrored.

The port is only referenced in the mirror source for mirroring purposes. If the port is removed from the system, the mirroring association is 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 a SAP is mirrored on an access port, the SAP mirroring has precedence over the access port mirroring when a packet matches the SAP mirroring criteria. Filter and label mirroring destinations have precedence over a port-mirroring destination.

If the port is not associated with a mirror-source, packets on that port are not mirrored. Mirroring may still be defined for a SAP or filter entry, which mirrors based on a more specific criteria.

The no form of this 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 are removed.

Parameters 
port-id—
Specifies the port ID.
Values—
SAS-M, T: 1 to 26
SAS-Mxp: 1 to 28
SAS-R6 and SAS-R12: values depend on the type of IMM card used
Note:

Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for more information about the number of ports supported on different IMMs.

SAS-Sx/S 1/10GE: for 24 port variant: 1/1/25 and 1/1/26; for 48 port variant: 1/1/49 and 1/1/50.
SAS-Sx 10/100G: port variant: 1/1/68

 

lag-id—
Specifies the LAG identifier, expressed as a decimal integer.
Values—
SAS-M,T, Mxp, Sx: 1 to 25
SAS-R6 and SAS-R12: 1 to 63
SAS-Sx 1/10GE and SAS-Sx 10/100GE: 1 to 56

 

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 before ingress packet modification.

sap

Syntax 
no sap sap-id {[ingress]}
no sap sap-id {[ingress]}
Context 
debug>mirror-source
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables mirroring of traffic ingressing or egressing a service access port (SAP). A SAP that is defined within a mirror destination cannot be used in a mirror source. The mirror source SAP referenced by the sap-id is owned by the service ID of the service in which it was created. The SAP is only referenced in the mirror source name for mirroring purposes. The mirror source association does not need to be removed before deleting the SAP from its service ID. If the SAP is deleted from its service ID, the mirror association is removed from the mirror source.

More than one SAP can be associated within a single mirror-source. Each SAP has its own ingress parameter keywords to define which packets are mirrored to the mirror destination.

The SAP must be valid and correctly configured. If the associated SAP does not exist, an error occurs and the command does not execute.

The same SAP cannot be associated with multiple mirror source definitions for ingress packets.

If a particular SAP is not associated with a mirror source name, that SAP does not have mirroring enabled for that mirror source.

The no form of this command disables mirroring for the specified SAP. All mirroring for that SAP on ingress and egress is terminated. Mirroring of packets on the SAP can continue if more specific mirror criteria is configured. If the egress or ingress parameter keywords are specified in the no command, only the ingress or egress mirroring condition is removed.

Parameters 
sap-id—
Specifies the physical port identifier portion of the SAP definition. See Common CLI Command Descriptions for command syntax.
ingress—
Specifies that packets ingressing the SAP should be mirrored. Ingress packets are mirrored to the mirror destination before ingress packet modification.

2.9.2.2. Show Commands

debug

Syntax 
debug [application]
Context 
show
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays set debug points.

Parameters 
application—
Displays which debug points have been set.

Values—
service, ip, ospf, ospf3, mtrace, isis, mpls, rsvp, ldp, mirror, system, filter, subscriber-mgmt, radius, lag, oam

 

Output 

The following output is an example of debug point information.

Sample Output
*A:alu1# show debug 
debug
    mirror-source 101
        port 1/1/1 ingress
        no shutdown
    exit
    mirror-source 102
        port 1/1/3 egress
        no shutdown
    exit
exit
*A:alu1# 
 

service-using

Syntax 
service-using [mirror]
Context 
show>service
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays mirror services.

If no optional parameters are specified, all services defined on the system are displayed.

Parameters 
mirror —
Displays mirror services.
Output 

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

Sample Output
A:ALA-48# show service service-using mirror
===============================================================================
Services [mirror]
===============================================================================
ServiceId    Type      Adm    Opr        CustomerId        Last Mgmt Change
-------------------------------------------------------------------------------
218          Mirror    Up     Down       1                 04/08/2007 13:49:57
318          Mirror    Down   Down       1                 04/08/2007 13:49:57
319          Mirror    Up     Down       1                 04/08/2007 13:49:57
320          Mirror    Up     Down       1                 04/08/2007 13:49:57
1000         Mirror    Down   Down       1                 04/08/2007 13:49:57
1216         Mirror    Up     Down       1                 04/08/2007 13:49:57
1412412      Mirror    Down   Down       1                 04/08/2007 13:49:57
-------------------------------------------------------------------------------
Matching Services : 7
===============================================================================
A:ALA-48#
Table 9:  Output Fields: Service-using 

Label

Description 

Service Id

The service identifier.

Type

Specifies the service type configured for the service ID.

Adm

The desired state of the service.

Opr

The operating state of the service.

CustomerID

The ID of the customer who owns this service.

Last Mgmt Change

The date and time of the most recent management-initiated change to this service.

mirror

Syntax 
mirror mirror-dest service-id
Context 
show
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays mirror configuration and operation information.

Parameters 
service-id—
Specifies the mirror service ID.
Values—
[1..2147483648]| svc-name:64 char max

 

Output 

The following outputs are examples of mirroring information, and Table 10 describes the output fields.

Sample Output
*A:7210SAS>config>mirror>mirror-dest$ show mirror mirror-dest
 
===============================================================================
Mirror Services
===============================================================================
Id   Type   Adm    Opr    Destination                SDP Lbl/ 
                                                     SAP QoS          Src
                                                                      Allowed
-------------------------------------------------------------------------------
1    Ether  Down   Down   None                       n/a        0     Local
1000 Ether  Up     Down   SDP 400 (1.1.1.1)          Pending    0     Local
2000 Ether  Up     Up     SAP 1/1/17:17              1          0     Remote
===============================================================================
*A:7210SAS>config>mirror>mirror-dest$
Sample Output for Network mode
*A:7210SAS>config>mirror>mirror-dest$ show mirror mirror-dest 1
 
===============================================================================
Mirror Service
===============================================================================
Service Id       : 1                    Type          : Ether
Description      : (Not Specified)
Admin State      : Down                 Oper State    : Down
Mirror Sources Allowed          : Local
Forwarding Class : be                   Remote Sources: No
Profile          : out
 
==============================================================
Mirror Services SDP
==============================================================
SdpId       IP Addr         CfgLabel    Signal    EgrLabel
--------------------------------------------------------------
No Matching Entries
==============================================================
 
-------------------------------------------------------------------------------
Local Sources
-------------------------------------------------------------------------------
Admin State      : Up
 
No Mirror Sources configured
===============================================================================
*A:7210SAS>config>mirror>mirror-dest$
 
Sample Output for Access-Uplink mode
*A:7210SAS# show mirror mirror-dest 1000
 
===============================================================================
Mirror Service
===============================================================================
Service Id       : 1000                 Type          : Ether
Description      : (Not Specified)
Admin State      : Up                   Oper State    : Down
Mirror Sources Allowed          : Local
Profile          : out
Destination SAP  : 1/1/1
 
-------------------------------------------------------------------------------
Local Sources
-------------------------------------------------------------------------------
Admin State      : Up
 
-Port                                   1/1/1                               Ing
===============================================================================
*A:7210SAS#
 
Table 10:  Output Fields: Mirror 

Label

Description 

Service Id

The service ID associated with this mirror destination.

Type

Entries in this table have an implied storage type of “volatile”.

The configured mirror source information is not persistent.

Admin State

Up — The mirror destination is administratively enabled.

Down — The mirror destination is administratively disabled.

Oper State

Up — The mirror destination is operationally enabled.

Down — The mirror destination is operationally disabled.

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.

Destination SAP

The ID of the access port where the Service Access Point (SAP) associated with this mirror destination service is defined.

Egr QoS Policy

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

mirror sources allowed

This value tells the user the type of mirror sources allowed to be configured.