Firmware: 10790+
To get a list of unique VLAN tags in a PCAP and the number of times they occur in that PCAP in a human-friendly histogram:
cat my_packets.pcap | protoscope --vlan=only | json2histo VLAN
# Or use stream_cat. Any standard output a.k.a. stdout will work:
sudo stream_cat my_packets | protoscope --vlan=only | json2histo VLAN
Example output:
VLAN (18)
2055 18 (0.182): ****************************************************************************************************
2173 16 (0.343): ****************************************************************************************
2039 13 (0.475): ************************************************************************
2168 9 (0.566): **************************************************
2047 6 (0.626): *********************************
2048 6 (0.687): *********************************
2170 4 (0.727): **********************
1111 4 (0.768): **********************
2038 3 (0.798): ****************
2050 2 (0.818): ***********
2214 2 (0.838): ***********
1311 2 (0.859): ***********
2105 2 (0.879): ***********
2199 1 (0.889): *****
2124 1 (0.899): *****
2182 1 (0.909): *****
2102 1 (0.919): *****
2082 1 (0.929): *****
2184 1 (0.939): *****
2076 1 (0.949): *****
2136 1 (0.960): *****
2103 1 (0.970): *****
2029 1 (0.980): *****
2028 1 (0.990): *****
2046 1 (1.000): *****