Skip to content
Ask AI

Mirror

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/mirrorYNYNN
/rest/v1/running/mirror/session/{name}YYYNY
/rest/v1/rpc/show-mirrorNYNNN
POST HTTPS://{switch IP}/rest/v1/rpc/show-mirror
GET HTTPS://{switch IP}/rest/v1/running/mirror
POST HTTPS://{switch IP}/rest/v1/running/mirror/session
{
"name": 3,
"type": "SPAN",
"direction": "TX",
"dst-port": "Ethernet11",
"egress-queue": 3
}

Tree Diagrams

+--rw mirror
+--rw session* [name]
+--rw name
+--rw type
+--rw commit?
+--rw direction?
+--rw dst-port
+--rw src-port*
+--rw dst-ip
+--rw gre-type?
+--rw ip-dscp
+--rw ip-ttl
+--rw src-ip
+--rw egress-queue?

Table of Properties

NameRequiredType/RangeDescription
mirrorMPath-only node, has no configurable value.
Top-level configuration for the mirror.
sessionM(sub-property of mirror)
Path-only node, has no configurable value.
nameM1..63(sub-property of session)
Identify different mirror sessions.
typeM”SPAN"
"ERSPAN”(sub-property of session)
Mirror type.
directionCO”RX"
"TX"
"BOTH”(sub-property of session)
Only applicable when type = “SPAN”.
Direction of mirror(default both).
Default value: “BOTH”
dst-portCMEthernet name
”CPU”(sub-property of session)
Only applicable when type = “SPAN”.
Set span mirror destination.
src-portCOEthernet name(sub-property of session)
Only applicable when type = “SPAN”.
Set span mirror session source.
dst-ipCMA.B.C.D(sub-property of session)
Only applicable when type = “ERSPAN”.
Set erspan mirror destination IP.
gre-typeCOa 4-digit hex number prefixed with ‘0x’ (e.g., 0x1A3F)(sub-property of session)
Only applicable when type = “ERSPAN”.
Set erspan gre type.
ip-dscpCM0..63(sub-property of session)
Only applicable when type = “ERSPAN”.
Set erspan ip differentiated services code point.
ip-ttlCM1..255(sub-property of session)
Only applicable when type = “ERSPAN”.
Set erspan ip ttl.
src-ipCMA.B.C.D(sub-property of session)
Only applicable when type = “ERSPAN”.
Set erspan mirror source IP.
egress-queueO0..7(sub-property of session)
Set erspan port egress queue.

Tree Diagrams

+---x show-mirror
+---w input
| +---w session-name?
+--ro output
+--ro session* [name]
+--ro name
+--ro type?
+--ro status?
+--ro dst-port?
+--ro src-port*
+--ro direction?
+--ro egress-queue?
+--ro src-ip?
+--ro dst-ip?
+--ro gre-type?
+--ro dscp?
+--ro ttl?

Table of Properties

NameRequiredType/RangeDescription
show-mirrorMPath-only node, has no configurable value.
Show mirror sessions information.
session-nameO1..63(sub-property of input)
Identify different mirror sessions.
sessionRO(sub-property of output)
Path-only node, has no configurable value.
nameRO1..63(sub-property of session)
Identify different mirror sessions.
typeRO”SPAN"
"ERSPAN”(sub-property of session)
Mirror type.
statusROstring(sub-property of session)
Mirror session active status.
dst-portROstring(sub-property of session)
Span mirror destination.
src-portROstring(sub-property of session)
Span mirror source.
directionROstring(sub-property of session)
Direction of mirror.
egress-queueRO0..7(sub-property of session)
Egress queue.
src-ipROA.B.C.D(sub-property of session)
Erspan mirror source IP.
dst-ipROA.B.C.D(sub-property of session)
Erspan mirror destination IP.
gre-typeROa 4-digit hex number prefixed with ‘0x’ (e.g., 0x1A3F)(sub-property of session)
Erspan gre type.
dscpRO0..63(sub-property of session)
Erspan ip differentiated services code point.
ttlRO1..255(sub-property of session)
Erspan ip ttl.