Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 - Write the Code (Bash Shell Script, 30 marks) Basic Functional Requirements (10 marks) Your server access lag must provide the user with

image text in transcribed

Part 1 - Write the Code (Bash Shell Script, 30 marks) Basic Functional Requirements (10 marks) Your server access lag must provide the user with all the following functionality: 1. Run a search on one (1) server access log of the user's choosing based on one (1) field criteria input, also of the user's choosing. PROTOCOL TCP 2. The results of each search the user conducts are to be displayed to the terminal pod also exported to a csv file with a name of the user's choosing. Each results file created must be uniquely named so that the results files of previous searches are not overwritten 3. Any log file records in which the class field is set to normal are to be automatically excluded from the search results printed to the screen/written to file Page 4 of 8 4. When the PACKETS and/or BYTES fields are selected by the user x search criteria, the user should be able to choose greater than let). less than 1-t), equal to (-e) or not equal to 119) the specfic value they provide, e.g. find all matches where PACKETS > '10 5. When the SRC IP or DEST IP fields are used as search criteria, the user should only need provide a partial search string rather than a complete value, search using the partial string EXT rather than the exact value EXT_SERVER Advanced Functional Requirements (10 marks) Implement two (2) of the following advanced functionalities: 1. Enable the log tool script to run searches on a single server access log of the user's choice using both two (2) and three (3) field criteria inputs, c.g. find all matches where PROTOCOL="TCPSAM SRCIP="ext and PACKETS > 101 2 Enable the log tool script to run searches on all available server access logs based on ane (2) field criteria input, c.g., find all matches where PROTOCOL="TCP in all available log files 1 when the PACKETS and/or BYTES fields are used as search criteria, totals for each of these should also be calculated and displayed as the final row of the search results printed toterminal/file Note: Please ensure that the enhanced functionalities you choose to implement are clearly identified in your code (using comments) and clearly addressed in your video demonstration

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago