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 |
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
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)