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
Metadata
Release files for dargslan-tcp-monitor 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dargslan_tcp_monitor-1.0.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dargslan_tcp_monitor-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / dargslan_tcp_monitor-1.0.0.tar.gz
| Download URL | dargslan_tcp_monitor-1.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96afe9d5a7a927812da322393a2e90073929b91ddafe22d6bf2f0b0eb095e2ff
|
|
BLAKE2b-256 checksum How to use checksums |
43c8e7c46be9f7e49bc64ee2271ef5381493ce6c22062743baeb02855a7c95b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / dargslan_tcp_monitor-1.0.0-py3-none-any.whl
| Download URL | dargslan_tcp_monitor-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28b50cb7fa5c0d7c85553b85943e4316ab7cf261af2ba907fdf7d7a0769beca5
|
|
BLAKE2b-256 checksum How to use checksums |
57439b4939edb80ff87775c3fc91834c32f03cd6c84952d7f532bfeeaa6e5f76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|