efa tenant service mirror session create

Creates a mirror session for a specified tenant.

Syntax

efa tenant service mirror session create [-name session-name | --tenant tenant-name | --description string | --source stringArray | --type stringArray | --destination-type stringArray | --destination stringArray | --direction stringArray | -h, --help ]

Parameters

-name session-name
Specifies the name of the mirror service session.
--tenant tenant-name
Specifies the name of the mirror source tenant.
--description stringArray
Specifies the description of the mirror service session.
--source stringArray
Specifies the mirror source, in the following format: deviceIP, IfType, IfName. Valid values of IfType are eth | po | vlan. Global Vlan Source format: vlan, vlan-range. Vlan Range Source format: vlan,a-b,c,d,e-f,g.

Example : 10.20.20.1,eth,0/1 10.20.20.1,po,po1 10.20.20.1,vlan,100 vlan,100 vlan,100-110,115,120-130.

A maximum of 253 characters are allowed for the Vlan Range.
--type stringArray
Specifies the mirror type in the following format: sourceDeviceIP, sourceIfType, sourceIfName:Value

Example: 10.20.20.1,eth,0/1:port-based 10.20.20.1,po,po1:flow-based. Default is port-based. Valid values are port-based | flow-based.

--destination-type stringArray
Specifies the mirror destination type in the following format: sourceDeviceIP, sourceIfType, sourceIfName:value

Example:10.20.20.1,eth,0/1:span. Valid Values are span.

--destination string
Specifies the mirror destination in the following format: sourceDeviceIP, sourceIfType,sourceIfName:destinationDeviceIP, destinationIfType, destinationIfName

Example: 10.20.20.1,eth,0/1:10.20.20.1,eth,0/5 10.20.20.1,vlan,100:10.20.20.1,eth,0/6 vlan,100:10.20.20.1,eth,0/6

--direction stringArray
Specifies the mirror traffic direction in the following format: sourceDeviceIP, sourceIfType, sourceIfName:Value

Example: 10.20.20.1,eth,0/1:tx. Valid values are tx | rx | both.

Examples

This example demonstrates the configuration to enable traffic mirroring with the following features:(1) For the IP: 10.20.246.15.
efa tenant service mirror session create –name ten1mirrorsession1 
--tenant ten1--source-if-type port-channel--source-if-name 10.20.246.15,ten1po1 
--destination-if-type eth--destination-if-name 10.20.246.15,0/31 
--direction both--type port-based

and

efa tenant service mirror session create –name ten2mirrorsession1 
--tenant ten2--source-if-type port-channel--source-if-name 10.20.246.15,ten2po1 
--destination-if-type eth--destination-if-name 10.20.246.15,0/31 
--direction both--type port-based

(2) For the IP: 10.20.246.16

efa tenant service mirror session create –name ten1mirrorsession2 
--tenant ten1--source-if-type port-channel--source-if-name 10.20.246.16,ten1po1 
--destination-if-type eth--destination-if-name 10.20.246.16,0/31 
--direction both--type port-based

and

efa tenant service mirror session create –name ten2mirrorsession2 
--tenant ten2--source-if-type port-channel--source-if-name 10.20.246.16,ten2po1 
--destination-if-type eth--destination-if-name 10.20.246.16,0/31 
--direction both--type port-based