CLI commands
This document lists CLI commands that you may find useful when working with NetCap.
List captures
You can list captures created on a specific IMSI or interface.
To see traffic streams created for a specific IMSI on a UPG pod, use:
See the output example:
To see traffic streams created on an interface (FPP or UPG pod), use:
See the output example:
List all streams
To see all created NetCap streams on an FPP or UPG pod, run:
See the output example:
Check NetCap status
To verify the NetCap VPP Plugin's connection to NetCap Collector, run on FPP or UPG:
FPP sample output:
UPG sample output:
Enable traffic capturing
Use these commands to enable traffic capturing on a specific IMSI or interface.
To enable traffic capturing on a specific IMSI, use the command:
The packet_max_bytes parameter is optional and it allows you to limit the size of collected data to reduce memory usage of a traffic capture.
To enable traffic capturing on a specific interface, use this command:
filter {tcpdump filter}- defines a libpcap-compatible filter, similar to those used with thetcpdumputility. Seeman pcap-filterOpens in a new tab for full syntax. Examples:filter {arp or icmp},filter {src net 192.0.2.0/24 and port 2020}.packet_max_bytes- optional parameter that allows you to limit the size of collected data to reduce the memory usage of a traffic capturerxandtx- specifies the direction in which traffic should be collected. If omitted, traffic in both directions is captured.
You can configure multiple captures on the same interface by using different target names. This is useful when you need to apply different filters and store the output in separate files.
Caution
Each active traffic stream may degrade interface performance. To minimize impact, reduce the number of attached streams. Where possible, combine filters using the or operator (for example, arp or icmp) to cover multiple cases in a single stream.
Disable traffic capturing
Use these commands to disable traffic capturing on a specific IMSI or interface.
To disable traffic capturing on a specific IMSI, use this command:
To disable traffic capturing on an interface, use this command: