Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Python scripts for Smoke Testing (Basic Network Connectivity, Servers status Tests..)

Notifications You must be signed in to change notification settings

sahanasj/Python-Scripts-for-Basic-Network-Connectivity-Test

Repository files navigation

Sahana's Python Scripts for Smoke Testing (Basic Network Connectivity, Servers status Tests..)

Verified Python Scripts

Script Description
ping-test-using-csv.py
Import the list of IP-address/Hosts from CSV file and then check the list of servers for network reachability using PING tool
1-ping-test-using-csv-output.PNG
Example output of ping test using csv file import
generic-ping-test.py
Check for the list of servers to ensure the server is up and running and network reachability using PING tool based on the platform dependent!
2-list-of-servers-ping-test-output.PNG
Example output of ping test using python dictionary
ping-test-using-dict.py
Check the list of servers from python Dictionary for network reachability using PING tool
3-ping-test-using-dict-output.PNG
Example output of ping test
socket-program-for-server-status-check.py
Socket programming for connecting two nodes/servers on a network to communicate with each other.
4-socket-program-output.PNG
Example output of socket program to check server ALIVE

Getting Started

Quick Install
*** Install dependencies (with virtualenv) ***
$ sudo apt-get -y install virtualenv or sudo yum install virtualenv
$ virtualenv smoke-test
$ source smoke-test/bin/activate

*** Create a Python Script ***
$ server-status-check.py  #example

*** Run the Python Script ***
$ python server-status-check.py

or

*** Run the Python Script and store output in text file ***
$ python server-status-check.py >> output.txt

Important Resources

Python socket network programming
Default Port Numbers You Need to Know as an Administrator
TCP/IP Ports and Sockets Explained
Python Socket Programming – Server, Client Example
Socket Programming in Python (Guide)

About

Python scripts for Smoke Testing (Basic Network Connectivity, Servers status Tests..)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages