startSiteSsrPacketCapture
POST https://{{host}}/api/v1/sites/:site_id/pcaps/capture
Body Parameters
Name | Type | Description |
---|---|---|
num_packets | int | number of packets to capture, 0 for unlimited, default is 1024 |
duration | int | duration of the capture, in seconds, default is 600, maximum is 86400 |
max_pkt_len | int | max_len of each packet to capture, default is 128, maximum is 2048 |
ssrs | dict | dict of ssr which uses mac as the key |
ports | list | dict of port which uses port id as the key |
tcpdump_expression | string | tcpdump expression per port |
format | string | pcap format: stream (default, the only supported option) |
Request Body
{"type"=>"gateway", "num_packets"=>100, "duration"=>600, "max_pkt_len"=>1500, "gateways"=>{"001122334455"=>{"ports"=>{"ge-0/0/0"=>{"tcpdump_expression"=>"tcp"}, "ge-0/0/1"=>{"tcpdump_expression"=>"port 443"}, "ge-1/0/0"=>{"tcpdump_expression"=>"tcp"}, "ge-1/0/1"=>{"tcpdump_expression"=>"port 443"}}}, "001122334466"=>{"ports"=>{"ge-0/0/0"=>{"tcpdump_expression"=>"udp"}, "ge-0/0/1"=>{"tcpdump_expression"=>"port 32768"}}}}, "format"=>"stream"}