Code Monkey home page Code Monkey logo

pinglist's Introduction

PingList.py

Author

Brantley Richbourg

#Installation and Usage

1.) Clone repo:

git clone https://github.com/brichbourg/PingList.git

2.) Edit ips.txt to populate with your list of random IP addresses you want to test.

10.10.1.10
10.10.1.20
10.20.30.40
...
10.254.254.1	

3.) Run script

sudo python pinglist.py ips.txt

Notes

This script uses a variation of the Python Ping script (http://www.g-loaded.eu/2009/10/30/python-ping/). This code is included in this repo and is imported by PingList.py. The use of this script requires running PingList.py as root, hence the reason to run with sudo.

This script was created on MAC OS 10.10.2. No other operating systems were tested.

Example output

MacBook-Pro:PingScript$ sudo python pinglist.py ips.txt 
Password: *******

IP addresses are  ['10.10.1.250', '10.10.1.251', '10.10.1.253']
=========================
START PING TEST
=========================
* 10.10.1.250 IS ALIVE!!!
* 10.10.1.251 IS ALIVE!!!
10.10.1.253 is dead.
=========================
END PING TEST
=========================
MacBook-Pro:PingScript$ 

pinglist's People

Contributors

brichbourg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.