run_traceflow
Trace a packet's path through the NSX overlay by injecting a synthetic probe. Returns hop-by-hop observations to identify which distributed firewall rule drops the flow.
Instructions
[WRITE] Run a Traceflow to trace a packet's path through the NSX overlay.
Injects a synthetic probe from the source port. Returns traceflow_id, operation_state (IN_PROGRESS / FINISHED / FAILED) and hop-by-hop observations typed by resource_type; Dropped* ones carry reason and acl_rule_id. Use it to find which DFW rule drops a flow, then get_dfw_rule_stats on that rule. A FINISHED traceflow is deleted server-side and its id 404s; only one still IN_PROGRESS at timeout_seconds survives for get_traceflow_result to poll.
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": {
"src_lport_id": "<src_lport_id>",
"src_ip": "<src_ip>",
"dst_ip": "<dst_ip>"
},
"name": "run_traceflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | IP TTL (default 64). | |
| dst_ip | Yes | Destination IP. | |
| src_ip | Yes | Probe source IP. | |
| target | No | Optional NSX Manager target from config. | |
| dst_port | No | Destination port for TCP/UDP (default 80). | |
| protocol | No | TCP, UDP or ICMP (default TCP). | TCP |
| src_port | No | Source port for TCP/UDP (default 1234). | |
| src_lport_id | Yes | Source logical port ID — the VM NIC attachment UUID. This skill does not enumerate ports; run vmware-nsx's get_segment_port_for_vm to obtain one. | |
| timeout_seconds | No | Max seconds to wait (default 20). |