Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Ping hosts using tcp syn packets

Project Description

Python script to “ping” hosts using tcp syn packets.

Install

Install using pip:

pip install synping

or

Download and set executable permission on the script file:

chmod +x synping.py

or

Download and run using the python interpreter:

python synping.py

Usage

Similar to “ping” utility:

usage: synping.py [-h] [-v] [-t] [-n COUNT] [-p PORT] [-w TIMEOUT] host

ping hosts using tcp syn packets

positional arguments:
  host           hostname or IP to ping

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -t             ping host until stopped with 'control-c'
  -n COUNT       number of requests to send
  -p PORT        port number to use (default: 80)
  -w TIMEOUT     timeout in seconds to wait for reply (default: 3)

Examples

Ping host on port 80 (default):

$ synping host

Ping host on port 22:

$ synping host -p 22

Ping host 10 times with 1 second timeout:

$ synping host -n 10 -w 1

Notes

  • Works on Python2 (not tested on Python3)
  • Works fine on Linux and should work on all platforms
  • Briefly tested on Windows, Cygwin and OSX
Release History

Release History

This version
History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
synping-0.2.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Feb 3, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting