Given the IP addresses XXXXXXXXXX85, write a suite of Python programs that will if the entire network is up. For each service, start with DNS then work your way up to HTTP. Note you should give an...

1 answer below »
Given the IP addresses 10.0.95.80-10.0.95.85, write a suite of Python programs that will if the entire network is up. For each service, start with DNS then work your way up to HTTP. Note you should give an overall score 0%-100% that reflect the number of services operational in the network.

  • Test Plan (in Word document)

  • Code (in Appendix in Word document)





Answered Same DayDec 06, 2021

Answer To: Given the IP addresses XXXXXXXXXX85, write a suite of Python programs that will if the entire...

Ximi answered on Dec 07 2021
140 Votes
Assignment-6
Final Project - System Wide Test
Given the IP addresses 10.0.95.80-10.0.95.85, write a suite of Python programs that will
if the entire network is up. For each service, start with DNS then work your way up to HTTP. Note you should give an overall score 0%-100% that reflect the number of services operational in the network.
You will be graded on the test plan (description of what and how you are testing it), and the code that does the test.
Turn in:
Test Plan (in Word document)
Code (in Appendix in Word document)
Plan text:
The program first calculates all the possible IP addresses which can be present between the range specified by the user. The range is hard coded inside the program.
After calculating the list of IP addresses that it needs to check upon on, the program fires up the check dns and http functions to see if any service is running and returns a response and a success code.
This success code is then used to calculate the overall score of how many services are actually up and running.
Appendix:
#!/usr/bin/python3
import platform
import subprocess
import urllib.request
import requests
import pymysql
import socket
import hashlib
import dns.resolver
import dns.reversename
from sys import argv
from socket import *
import sys
from urllib.request import Request, urlopen
from urllib.error import URLError,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here