--- title: "Adding or deleting port mirroring for All traffic using the CLI" slug: "adding-or-deleting-port-mirroring-for-all-traffic-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-09-12T20:42:40Z published: 2026-09-12T20:42:40Z canonical: "docs.trellix.com/adding-or-deleting-port-mirroring-for-all-traffic-using-the-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Adding or deleting port mirroring for All traffic using the CLI Use the commands in this section to add or delete port mirroring for all traffic types (including SSL traffic) on a Network Security monitoring interface pair. **To add a mirror port to an interface:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Enable port mirroring for all traffic types (including SSL traffic) on the monitoring interface. ``` hostname (config) # policymgr interface mirror enable ``` where `<interfacePair>` is the interface pair from which traffic will be forwarded. 3. Save your changes. ``` hostname (config) # write memory ``` 4. Verify the status of port mirroring for all traffic types. ``` hostname (config) # show policymgr interfaces Policy enabled: yes Interface A  Active      : yes  op mode     : block (enforcing)  fail-safe   : close  policy      : mixed  tolerance   : 1  Ports       : pether3  pether4  QinQ        : no  QinQ-evet   : 0x88a8  Mirror:   Non-SSL   : yes    SSL       : no   Port      : pether9 ........ ``` The "Mirror Non-SSL" line displays "yes" if port mirroring is added for all traffic types. **To delete a mirror port from an interface:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Disable port mirroring for all traffic types (including SSL traffic). ``` hostname (config) # no policymgr interface mirror enable ``` where `<interfacePair>` is the monitoring interface pair that is forwarding traffic. 3. Delete the mirror port from an interface. ``` hostname (config) # policymgr interface mirror clear ``` where `<interfacePair>` is the monitoring interface pair. 4. Save your changes. ``` hostname (config) # write memory ``` 5. Verify the status of port mirroring for all traffic types. ``` hostname (config) # show policymgr interfaces Policy enabled: yes Interface A  Active      : yes  op mode     : block (enforcing)  fail-safe   : close  policy      : mixed  tolerance   : 1  Ports       : pether3  pether4  QinQ        : no  QinQ-evet   : 0x88a8  Mirror:    Non-SSL  : no    SSL       : no   Port   : ........ ``` The "Mirror Non-SSL" line displays "no" if port mirroring is deleted for all traffic types. The mirror port is also removed from the interface.