Giter Site home page Giter Site logo

python-ping-utility's Introduction

Python3-Ping-Utility

This illustrates the use of ping command

[Ping]

The ping command is a very common method for troubleshooting the accessibility of devices. It uses a series of Internet Control Message Protocol (ICMP) Echo messages to determine. • Whether a remote host is active or inactive
• The round-trip delay in communicating with the host
• Packet loss
The ping command first sends an echo request packet to an address, then waits for a reply. The ping is successful only if, • the echo request gets to the destination, and
• the destination is able to get an echo reply back to the source within a predetermined time called a timeout.

  The TTL value of a ping packet cannot be changed <br/>

ARTICLE

https://jadhusan-s.medium.com/testing-connectivity-on-a-network-ping-utility-6f3139f5b3c0

LinkedIN

TESTED WITH

WinVer WinVer


W I N D O W S


Excute this program using WSL

  • open CMD
  • navigate to file path
  • type the following command

python ping.py www.google.com
python ping.py 8.8.8.8


L I N U X


  • open terminal
  • navigate to file path
  • type the following command

sudo python3 ping.py www.google.com
sudo python3 ping.py 8.8.8.8

NOTE

  • Run using Sudo privilege - LINUX
  • Run using Administration privilege - WINDOWS
  • Use -h for help
ICMP Type Literal
0 echo-reply
3 destination unreachable code 0 = net unreachable 1 = host unreachable 2 = protocol unreachable 3 = port unreachable 4 = fragmentation needed and DF set 5 = source route failed
4 source-quencht
5 redirect code 0 = redirect datagrams for the network 1 = redirect datagrams for the host 2 = redirect datagrams for the type of service and network 3 = redirect datagrams for the type of service and host
6 alternate-address
8 echo
9 router-advertisement
10 router-solicitation
11 time-exceeded code 0 = time to live exceeded in transit 1 = fragment reassembly time exceeded
12 parameter-problem
13 timestamp-request
14 timestamp-reply
15 information-request
16 information-reply
17 mask-request
18 mask-reply
31 conversion-error
32 mobile-redirect

Output

  • domain

result

  • Ip Address

result

  • root permission

error

  • Help

help

python-ping-utility's People

Contributors

jadhusan24 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

keshan-spec

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.