startSiteSsrPacketCapture

POST https://{{host}}/api/v1/sites/:site_id/pcaps/capture

Body Parameters

NameTypeDescription
num_packetsintnumber of packets to capture, 0 for unlimited, default is 1024
durationintduration of the capture, in seconds, default is 600, maximum is 86400
max_pkt_lenintmax_len of each packet to capture, default is 128, maximum is 2048
ssrsdictdict of ssr which uses mac as the key
portslistdict of port which uses port id as the key
tcpdump_expressionstringtcpdump expression per port
formatstringpcap 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"}