set_port_mirror
Configure port mirroring to copy ingress or egress traffic from source ports to a monitoring port, enabling packet sniffing and traffic analysis.
Instructions
Configure port mirroring for traffic analysis.
Copies traffic from source ports to a destination port where a packet sniffer or analyzer can be connected.
Args: enabled: True to enable mirroring. destination_port: The monitoring port that receives copied traffic. ingress_ports: Source ports to mirror incoming traffic from. egress_ports: Source ports to mirror outgoing traffic from.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"enabled": "<enabled>"
},
"name": "set_port_mirror"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| egress_ports | No | ||
| ingress_ports | No | ||
| destination_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |