Discover Packages
github.com/AlphaHydrae/probetcp
command
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 14, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
probetcp
Probe TCP endpoints.
Installation
Linux
wget -O /usr/local/bin/probetcp \
https://github.com/AlphaHydrae/probetcp/releases/download/v1.0.0/probetcp_v1.0.0_linux_amd64 && \
chmod +x /usr/local/bin/probetcp
Linux (arm64)
wget -O /usr/local/bin/probetcp \
https://github.com/AlphaHydrae/probetcp/releases/download/v1.0.0/probetcp_v1.0.0_linux_arm64 && \
chmod +x /usr/local/bin/probetcp
macOS
wget -O /usr/local/bin/probetcp \
https://github.com/AlphaHydrae/probetcp/releases/download/v1.0.0/probetcp_v1.0.0_darwin_amd64 && \
chmod +x /usr/local/bin/probetcp
Windows
wget -O /usr/local/bin/probetcp \
https://github.com/AlphaHydrae/probetcp/releases/download/v1.0.0/probetcp_v1.0.0_windows_amd64 && \
chmod +x /usr/local/bin/probetcp
Usage
probetcp probes TCP endpoints.
Usage:
probetcp [OPTION...] TARGET
Options:
-i, --interval int Time to wait between probe retries in milliseconds (default 1000)
-q, --quiet Do not print anything (default false)
-r, --retries int Number of times to retry to probe the target if it fails (default 0)
-t, --timeout int TCP connection timeout in milliseconds (default 60000)
Examples:
Probe a MySQL database over TCP (10 attempts every 2 seconds):
probetcp -r 9 -i 2000 tcp://localhost:3306
Expand ▾
Collapse ▴
Documentation
¶
The probetcp command checks whether a TCP endpoint can be reached.
Source Files
¶
Directories
¶
Package tcp provides the ProbeTCPEndpoint function to test if a TCP endpoint can be reached.
Package tcp provides the ProbeTCPEndpoint function to test if a TCP endpoint can be reached.
Click to show internal directories.
Click to hide internal directories.