You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Auxiliary commands
Capture network traffic (tcpdump)
Copy page
Download PDF
Capture network traffic (tcpdump)
You can use the tcpdump command to capture and analyze network traffic.​
Notes​
  • This command is for internal use only. To download the installation packages, please refer to the following:​
  • Linux​
  • Windows​
  • macOS​
  • Please install the libpcap.so.0.8 dependency before running this command. Otherwise, the command may not function properly.​
Command syntax​
​
Linux/macOS
Windows
​
  • Capture packets from all network interfaces​
​
./tosutil tcpdump [-sdt=xxx]​
​
  • Capture packets from a specific network interface​
​
./tosutil tcpdump device [-o=xxx] [-bpf=xxx] [-t=1]​
​
​
​
Description​
​
Parameter​
Type​
Description​
device​
String​
The name of the interface from which packets will be captured.​
-sdt​
String​
Display a list of network interfaces based on the specified type of IP address. The options are as follows:​
  • all​
  • ip​
  • ipv4​
  • ipv6​
The default value is all.​
-o​
String​
The local file path to save the output of the tcpdump command.​
-bpf​
String​
Sets the Berkeley packet filter (BPF) expression for the tcpdump command.​
-t​
String​
The maximum execution time for the tcpdump command, in seconds.​
​
Example​
  • Command​
​
./tosutil tcpdump​
​
  • Output​
​
interface 1: eth0​
- ip: 192.168.2.158, mask: ffffff00, broad addr: 192.168.2.255​
- ip: fe80::216:3eff:fe14:78b9​
​
interface 2: nflog​
​
interface 3: nfqueue​
​
interface 4: usbmon1​
​
interface 5: usbmon2​
​
interface 6: usbmon3​
​
interface 7: usbmon4​
​
interface 8: any​
​
interface 9: lo​
- ip: 127.0.0.1​
- ip: ::1​
​
​
Last updated: 2025.12.17 18:33:43