probetcp

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 7 Imported by: 0

README

probetcp

Probe TCP endpoints.

version license

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

Documentation

Overview

The probetcp command checks whether a TCP endpoint can be reached.

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL