Skip to content

ctyar/pingct

Repository files navigation

pingct

Build Status pingct

A simple Ping like tool to check the network connection issues. pingct is designed to constantly check the network connectivity and in case of any issues run a set of tests to facilitate troubleshooting.

Get started

Install the required .NET SDK.

Run this command:

$ dotnet tool install --global pingct

And run the tool with:

$ pingct

Usage

  pingct [command] [options]

Options:
  -?, -h, --help  Show help and usage information
  --version       Show version information

Commands:
  config  Prints the path to the config file

Config file

{
  "Ping": "4.2.2.4",
  "Delay": 1500,
  "MaxPingSuccessTime": 120,
  "MaxPingWarningTime": 170,
  "Tests": [
    {
      "Type": "ping",
      "Host": "192.168.1.1"
    },
    {
      "Type": "ping",
      "Host": "bt.com"
    },
    {
      "Type": "dns",
      "Host": "facebook.com"
    },
    {
      "Type": "get",
      "Host": "https://twitter.com"
    }
  ],
  "OnConnected": "",
  "OnConnectedArgs": "",
  "OnDisconnected": "",
  "OnDisconnectedArgs": ""
}

Supported test types:

  1. ping Ping
  2. dns DNS lookup
  3. get HTTP GET request

Sample output:

image

Pre-release builds

Get the package from here.

Build

Install the required .NET SDK.

Run:

$ dotnet build

About

A simple ping like tool to check the network connectivity.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •