Netstat-pid display 'netstat' connectivity information for processes and threads on a host.
- Display network connections from all processes including threads on a host (default).
- Display both hostname and container name if available, in the UTS namespace.
- Displays network connections for a specific pid.
- Write connectivity information as json to standard out.
- Traverses the entire process tree and each thread
- Reads connection information from proc files tcp and tcp6, per process and thread.
- Outputs the connection information as JSON to stdout.
-
List connections for a specific PID:
./netstat-pid 1
-
List all connections from all process and threads:
sudo ./netstat-pid
-
List all connection to file
sudo ./netstat-pid > netstat-output.json
-
Fedora 22
make build-fedora-32
-
Ubuntu 22.04
make build-ubuntu-22.04