Question: Write a JCL script in either MS-DOS or bash (or both if you wish, see later) which reads in a text file (as a command
Write a JCL script in either MS-DOS or bash (or both if you wish, see later) which reads in a text file (as a command line parameter) with IP addresses and uses the ping command to find out alive machines on the network. (Side note: Command line parameters are the data you add to a command line for the command to work on, for example in MS-DOS you could say dir c:\windows, where dir would be the command and c:\windows would be a command line parameter. The ping command can be used to test the reachability of a host on an IP network. You can use a loop for iterating through a list of IP addresses and call the ping command with these IP addresses and produce corresponding outputs.) For example if the script you wrote was (for example in MS-DOS) called ping_ip.bat and at the MS- DOS command prompt you typed: ping_ip.bat list.txt the program might result: 192.168.0.1 is alive 127.0.0.1 is alive 127.0.0.0 is failed to respond when the list.txt contains the following IP addresses: 192.168.0.1 127.0.0.1 127.0.0.0 The above is just an outline of how the program should work, it will need to be much more user friendly, such as the program introducing itself or producing error messages when the user provides wrong number of input parameters, in 1700 lines
f Operating System... a Module MOD003218: Operating Systems Assignment Semester 2 2021/22 Hand in deadline: See assessment information on Canvas Please read the whole of this document carefully. Nor doing so COULD COST YOU MARKS One of the most common reasons why students lose marks on or fail assignments is not doing EXACTLY what the specification (this document) asks... you may want to read it again before you finally hand your work in as well!) Introduction This assignment is in two parts. Part 1 is an exercise where you need to write script programs in one or both of MS-DOS batch language and the Linux bash shell scripting language. This will form up 60% of the marks for this assignment (see below). Part 2 is a set of research questions on operating system you need to look up in text books or on line and write up your answers. This second part will form the other 40% of the marks. You need to attempt at least some of the programs in part 1 (ideally all) AND the research questions in part 2 You will find it hard to pass if you do not at least atemor both parts. Part 1: Seroting Task (worth up to 60%) Write a JCL script in either MS-DOS or bash (or both if you wish, see later) which reads in a text file (as a command line parameter) with IP addresses and uses the ping command to find out alive machines on the network. (Side note: Command line parameters are the data you add to a command line for the command to work on, for example in MS-DOS you could say 'dir c-windows" where "dir" would be the command and "c:windows would be a command line parameter. The ping command can be used to test the reachability of a host on an IP network. You can use a loop for iterating through a list of IP addresses and call the ping command with these IP addresses and produce corresponding outputs.) For example it the script you wrote was (for example in MS-DOS) called "ping_lp.bat and at the MS- DOS command prompt you typed: ping ip.bat list.but the program might result 192.168.0.1 is alive 127.0.0.1 is alive 127.0.0.0 is failed to respond when the list.txt contains the following IP addresses: 192.168.0.1 127.0.0.1 127.0.0.0 The above is just an outline of how the program should work, it will need to be much more user friendly, such as the program introducing itself or producing error messages when the user provides wrong number of input parameters, etc. Page 115 f Operating System... a Module MOD003218: Operating Systems Assignment Semester 2 2021/22 Hand in deadline: See assessment information on Canvas Please read the whole of this document carefully. Nor doing so COULD COST YOU MARKS One of the most common reasons why students lose marks on or fail assignments is not doing EXACTLY what the specification (this document) asks... you may want to read it again before you finally hand your work in as well!) Introduction This assignment is in two parts. Part 1 is an exercise where you need to write script programs in one or both of MS-DOS batch language and the Linux bash shell scripting language. This will form up 60% of the marks for this assignment (see below). Part 2 is a set of research questions on operating system you need to look up in text books or on line and write up your answers. This second part will form the other 40% of the marks. You need to attempt at least some of the programs in part 1 (ideally all) AND the research questions in part 2 You will find it hard to pass if you do not at least atemor both parts. Part 1: Seroting Task (worth up to 60%) Write a JCL script in either MS-DOS or bash (or both if you wish, see later) which reads in a text file (as a command line parameter) with IP addresses and uses the ping command to find out alive machines on the network. (Side note: Command line parameters are the data you add to a command line for the command to work on, for example in MS-DOS you could say 'dir c-windows" where "dir" would be the command and "c:windows would be a command line parameter. The ping command can be used to test the reachability of a host on an IP network. You can use a loop for iterating through a list of IP addresses and call the ping command with these IP addresses and produce corresponding outputs.) For example it the script you wrote was (for example in MS-DOS) called "ping_lp.bat and at the MS- DOS command prompt you typed: ping ip.bat list.but the program might result 192.168.0.1 is alive 127.0.0.1 is alive 127.0.0.0 is failed to respond when the list.txt contains the following IP addresses: 192.168.0.1 127.0.0.1 127.0.0.0 The above is just an outline of how the program should work, it will need to be much more user friendly, such as the program introducing itself or producing error messages when the user provides wrong number of input parameters, etc. Page 115