TCP connection monitor — track ESTABLISHED, TIME_WAIT, connection states, and per-IP statistics
Project description
dargslan-tcp-monitor
TCP Connection Monitor — Track connection states, listening ports, per-IP statistics, and TIME_WAIT buildup. Zero external dependencies.
Installation
pip install dargslan-tcp-monitor
CLI Usage
dargslan-tcp report # Full TCP connection report
dargslan-tcp states # Connection state counts
dargslan-tcp listen # Listening ports
dargslan-tcp established # Active connections
dargslan-tcp per-ip # Connections per remote IP
dargslan-tcp timewait # TIME_WAIT count
dargslan-tcp json # JSON output
Python API
from dargslan_tcp_monitor import TCPMonitor
tm = TCPMonitor()
states = tm.get_state_counts()
listening = tm.get_listening_ports()
tm.print_report()
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets
- Blog & Tutorials
License
MIT — see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dargslan_tcp_monitor-1.0.0.tar.gz.
File metadata
- Download URL: dargslan_tcp_monitor-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96afe9d5a7a927812da322393a2e90073929b91ddafe22d6bf2f0b0eb095e2ff
|
|
| MD5 |
6212808ae8e8648d9ae69723b74ce11c
|
|
| BLAKE2b-256 |
43c8e7c46be9f7e49bc64ee2271ef5381493ce6c22062743baeb02855a7c95b2
|
File details
Details for the file dargslan_tcp_monitor-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_tcp_monitor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b50cb7fa5c0d7c85553b85943e4316ab7cf261af2ba907fdf7d7a0769beca5
|
|
| MD5 |
3a37bb870339393c886dbb1ca54e264c
|
|
| BLAKE2b-256 |
57439b4939edb80ff87775c3fc91834c32f03cd6c84952d7f532bfeeaa6e5f76
|