pingnet

command module
v0.0.0-...-fd6a427 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

pingnet (under development and refactoring)

concurrently ping multiple targets (continuation of https://github.com/irom77/go-public/pingnet/pingnet.go)

Flags and version
docker@ubuntu-DC1:~$ pingnet -v
App Version: No Version Provided
Build Time : 
docker@ubuntu-DC1:~$ pingnet -h
Copyright 2017 @IrekRomaniuk. All rights reserved.
Usage of pingnet:
  -a string
        destinations to ping, i.e. ./file.txt (default "all")
  -c string
        ping count) (default "1")
  -p string
        print metadata (default "alive")
  -r int
        max concurrent pings (default 200)
  -s string
        source location tag (default "DC1")
  -v    Prints current version
  -w string
        ping timout in s (default "1")
To get list of dead targets:
docker@ubuntu-DC1:~$ go get -u github.com/IrekRomaniuk/pingnet
docker@ubuntu-DC1:~$ pingnet > pinglist.txt
docker@ubuntu-DC1:~$ pingnet -a="pinglist.txt" -p="dead"
10.197.78.1
10.195.244.1
10.198.17.1
10.196.45.1
1.73s dead/total: 4/1144 cur: 200
pingcount,site=DC1,cur=200 total-up=1140
Firebase output format

i.e. { Description: "DC1 shield count", total: 1000 }

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package pings based on https://gist.github.com/kotakanbe/d3059af990252ba89a82
Package pings based on https://gist.github.com/kotakanbe/d3059af990252ba89a82

Jump to

Keyboard shortcuts

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