Focus
Focus
Table of Contents

Manage PCAP

Examples for the PCAP model usage.
The following query retrieves a packet capture:
gnmic -a IP:9339 -u USER -p PASSWORD --mode ONCE subscribe -e json_ietf --skip-verify --path /pan/pcap/config[filter1_destination_port=5353][filter1_destination_port=67][file_size=100][duration=120]
The following is an example response following a successful packet capture:
{ "source": "10.0.0.1:9339", "subscription-name": "default-1683208591", "timestamp": 1683208595000000000, "time": "2023-05-04T06:56:35-07:00", "updates": [ { "Path": "/pan/pcap/config", "values": { "/pan/pcap/config": { "code": 200, "message": "dial-in: pcap job is done. file name: <snip>.pcap" } } } ] }

Recommended For You