I'm absolutely horrible at scripting. Never really done it before. I've been asked to create a script for a class project and have no idea where to start. Here are the requirements:
Create a simple script on the client to request the user to supply a numeric value (X) and then ping each IP address starting from 192.168.222.1 to 192.168.222.X :
- The value could be provided to the script as a command line parameter or read from the keyboard when prompted
- A conditional expression should be used to evaluate when all needed IP addresses have been pinged
- The script should ping each IP address starting from
192.168.222.1and ending at192.168.222.X. - The script should display text saying “Beginning scan of 192.168.222.X ….” followed by the output of the ping command of the current IP addresses
- Use an appropriate ping parameter to only send two ping echos to each host
- Run the script with an input value of 15 and show the results.
Any help would be much appreciated.
Danny E.