monitor session 
Use this command to create a local or remote monitor session. By default, a local monitor session is created. 
A monitor session consists of:
•	A single destination interface, referred to as a mirror-to port or a single remote destination
•	One or more source interfaces (egress, ingress, or both)
•	One or more VLAN sources in the ingress direction
•	One or more filters that can be applied to filter the mirrored packets
Use the no parameter to delete a monitor session. 
Command Syntax 
monitor session <1-18> ( | type ( local | remote )) 
no monitor session ( <1-18> | all ) 
Parameters 
<1-18>
Session number 
local 
Create a local session 
remote
Create a remote source node session 
all
All sessions 
Default 
By default, monitor session type is local and will not be active by default 
Command Mode 
Configure mode 
Applicability
This command was introduced before OcNOS version 1.3.
Examples 
#configure terminal 
(config)#monitor session 1 
(config-monitor)#exit 
(config)#monitor session 3 type remote 
(config-monitor)#exit 
(config)#no monitor session 1 
Last modified date: 07/06/2023