Skip to content
Aldwin Hermanudin edited this page May 8, 2017 · 11 revisions

Capturing data in tshark without details

tshark -i lowpan0 -f ip6
  • -i, indicates the target interface.
  • -f, indicates the filter. Here it says that it only showing IPv6 packet

Capturing data in tshark, with output in .pcap

tshark -i lowpan0 -f ip6 -w outlog.pcap
  • -w, indicates the output file name.

Capturing data in tshark, with output in .pcap and print to screen

tshark -P -i lowpan0 -f ip6 -w outlog.pcap
  • -w, indicates the output file name

Capturing data in tshark, with output in .pcap, print to screen and capture time in UTC

tshark -P -t ud -i wlp2s0 -w outlog.pcap
  • -w, indicates the output file name

Executing command with interval

watch -n1 mosquitto_pub -h fe80::1:2%lowpan0 -t test/test2 -m "lalali"

will execute mosquitto_pub with it's parameter every one second