pt_apply_netflow
Configures a NetFlow exporter on a Packet Tracer device, including collector IP, UDP port, version, and monitor associations, with dry-run validation and removal support.
Instructions
Configures a NetFlow exporter on a PT device.
Unlike the rest of the advanced features, NetFlow does NOT go through CLI: it is configured directly and read back to verify it was applied. If the name already exists, it is reconfigured instead of duplicated. The exported FLOWS are not read: no way to read them was measured on PT 9 (the exporter manager has no exporter or monitor count either).
Parameters:
device: router where the exporter lives.
name: exporter name (e.g. "COLLECTOR-1").
destination_ip: the collector's IP. Without it the exporter is inert.
udp_port: the collector's UDP port (default 2055).
version: 9 (templates, recommended) or 5 (fixed format).
source_port: source interface; empty = PT picks it.
monitors: names of the monitors to associate.
remove: if True, deletes the exporter
nameinstead of creating it.dry_run: if True, only validates and returns the payload without touching PT.
Example: export to a collector at 192.168.0.50: pt_apply_netflow(device="R1", name="COLLECTOR-1", destination_ip="192.168.0.50")
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": {
"device": "<device>",
"name": "<name>"
},
"name": "pt_apply_netflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| device | Yes | ||
| remove | No | ||
| dry_run | No | ||
| version | No | ||
| monitors | No | ||
| udp_port | No | ||
| source_port | No | ||
| destination_ip | No |