Skip to content

opx config mirror

Amy Buck edited this page Feb 21, 2019 · 18 revisions

COMMAND

opx-config-mirror — Creates and configures various attributes of a mirroring session.

SYNOPSIS

opx-config-mirror [-h,--help]
[--src_intf <src_intf>] 
[--dest_intf <dest_intf>] 
[--direction (ingress | egress | ingress_egress)] 
[--id <id>] 
[--vlan <vlan>] 
[--type (span | rspan)]

OPTIONS

Option Description
-h,--help Displays help text
--src_intf <src_intf> Port name (such as front-panel Ethernet interface) as the source interface for this mirroring session
--dest_intf <dest_intf> Port name (such as front-panel Ethernet interface) as the destination interface for this mirroring session
--direction (ingress | egress | ingress_egress) Direction for the mirroring session
--id <id> Session ID for updating a mirroring session
--vlan <vlan> VLAN for RSPAN session; this VLAN has special properties and cannot be assigned to any access ports; it works by mirroring the traffic from the source ports of an RSPAN session onto a VLAN that is dedicated for the RSPAN session; this VLAN is then trunked to other switches, allowing the RSPAN session traffic to be transported across multiple switches
--type (span | rspan) Mirroring session type

EXIT STATUS

0 if OK
1 if minor problems (syntax error, wrong parameters passed)
2 if serious trouble (CPS commit fails)

EXAMPLE

Create mirroring session

$ opx-config-mirror create --src_intf e101-012-0 --dest_intf e101-013-0 --direction ingress --type span

Set mirroring session

$ opx-config-mirror set --id 4  --dest_intf e101-014-0 --direction ingress_egress --src_intf e101-012-0

Create ingress mirroring session

$ opx-config-mirror create --src_intf e101-009-0 --dest_intf e101-010-0 --direction ingress --vlan 700 --type rspan

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-show-mirror

Clone this wiki locally