Answered You can buy a ready-made answer or pick a professional tutor to order an original one.
Overview: Scripting is a very important skill to have when working as a *NIX system administrator and one that will make your day
IT 251 Final Project Template
Overview: Scripting is a very important skill to have when working as a *NIX system administrator and one that will make your day much less tedious and much more efficient. This final submission is the last piece of your final assessment and will build on the skills you have utilized over the previous four milestones.
Prompt: For this final submission, you will submit your UNIX/Linux Task Training Aid in its final form, addressing all critical elements in the Final Project Document. You may also modify the previous milestones for resubmission. Paste your previous milestones into this template, below, andhighlight areas of change.
Specifically, the following critical elements must be addressed in this submission:
V. Fully Functional ScriptIn this section, you will write a fully functional script to help your manager with an important project that will build upon what you learned from your script work in Milestone Four. After you have written the script, you will execute it to generate a report for all three users (once for Bob, once for Henry, and once for Frank). You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). This script will be showcased to upper management and should demonstrate your best work.
a) Write the Script:Write a fully functional and professional looking script that meets all of the following requirements.
1. Resides within your ~/scripts directory and is namedtps-report-gen.sh.
2. Take a supplied user's first name (Bob, Henry, or Frank) in any order when the script is executed (for example:sh tps-report-gen.sh bob).
3. Print out to the screen the text: TPS REPORT LISTING
4. A double newline.
5. Print out to the screen neatly theuser’s name, company position, and home directory path on one line.
6. A double newline.
7. A list of TPS Reports associated with that user.
8. A double newline.
9. Print out to the screen the text: END REPORT LISTING
10. The script needs to print the output to the screen and generate a report into the same directory as the script named tps-list-USER-DATETIME.rpt. USER would be the user's username and DATETIME would be the date and time that the report was run. USER and DATETIME would both change based on the username supplied and the date and time the script is executed. It may be easier to build the report file first,then simply cat the file to the screen within the script. An example report would look like:tps-list-bob-030816624.rpt HINT: To format the DATETIME portion as requested, use the following:date "+%m%d%y%k%M" | awk -F" " {'print $1$2'}
b) Execute the Script: Execute the script to generate a report for all three users: once for Bob, once for Frank, and once for Henry. You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). Each report (and displayed output) should look like the following (but with the correct associated TPS Reports listed).
TPS REPORT LISTING bob, ops, /home/bob tps-report-02092016 tps-report-02102016 tps-report-02112016 tps-report-02122016 END REPORT LISTING
c) Document the Script: Document your work by performing the following tasks.
1. Take a screenshot of your ~/scripts directory with your newly generated .rpt reports listed.
2. Take a screenshot of your tps-report-gen.sh script.
3. Take a screenshot, or multiple screenshots if needed, of the output displayed from running the script for each of the three users.
4. Write a couple of sentences detailing your thought process and reasoning for utilizing the commands you used within your script.
Work Verification: Take a screenshot (or multiple screenshots if needed) that captures the output of the pwd and history commands. Paste these screenshots below:
Guidelines for Submission: Be sure to read the primary Final Project Guidelines and Rubric document in full, as it contains the context that each milestone is based within and provides the complete picture of the final project that each milestone builds on. Your answers will be inserted directly into this document and saved.
Tasks marked in red indicate that an answer and/or screenshot is expected.
Use this area to submit Milestone One(highlight revised areas):
Use this area to submit Milestone Two(highlight revised areas):
Use this area to submit Milestone Three(highlight revised areas):
Use this area to submit Milestone Four(highlight revised areas):
- @
- 165 orders completed
- ANSWER
-
Tutor has posted answer for $100.00. See answer's preview
** *** ***** Project ***************** Scripting ** a **** important skill to **** **** ******* ** * *NIX system ************* *** one **** will **** your *** **** **** ******* *** **** **** efficient **** ***** ********** ** the **** ***** ** **** ***** ********** *** **** ***** on the skills *** **** ******** **** *** previous **** ***************** *** **** final ********** you **** ****** **** ********** **** Training *** ** its ***** **** ********** *** ******** ******** in the ***** Project ******** *** may **** ****** *** previous ********** *** ************ ***** **** ******** milestones into this ******** ***** andhighlight areas ** ****************** *** following critical elements **** ** addressed in this *********** * ***** ********** ******** **** ******* you will write a ***** ********** script to **** **** ******* **** ** ********* ******* that **** ***** upon **** *** ******* **** **** script **** in ********* **** ***** *** **** written *** ****** *** will ******* ** ** generate * report for all ***** ***** (once *** Bob **** *** ***** and once *** ****** *** ****** have ***** ****** generated reports in **** ********* ********* *** **** if *** *** ** ******** ***** per ***** **** script will ** showcased to upper ********** *** ****** *********** **** best ****** ***** *** ******* ***** a ***** ********** and ************ ******* script **** ***** all ** *** following ************* Resides ****** your ********* ********* and ** ***** tps-report-gensh2 **** * ******** ****** ***** name **** ***** ** Frank) in *** ***** when *** ****** ** ******** **** ******** sh **************** ***** Print *** ** *** screen *** ***** *** ****** ******** A double ******** ***** out ** the ****** ****** *********** **** company position *** home ********* path on *** line6 A ****** newline7 * **** of *** ******* ********** with **** user8 * ****** ******** Print *** ** *** ****** *** text: *** ****** ********* *** ****** ***** ** print the output ** *** ****** *** ******** * ****** into *** **** ********* ** *** ****** named tps-list-USER-DATETIMErpt **** ***** ** *** ****** ******** and ******** would ** *** date *** **** that *** report *** *** USER *** DATETIME ***** **** change ***** ** *** username ******** *** *** date and **** the ****** ** executed It *** ** easier to build *** ****** **** first **** ****** *** *** **** to *** ****** within the script ** ******* report would **** like:tps-list-bob-030816624rpt ***** To ****** *** ******** ******* as ********* use *** following:date ************* * awk *** * {'print ****** b) Execute *** ******* ******* *** ****** ** generate a ****** *** *** three ****** **** *** Bob once for Frank *** **** for ***** You ****** **** ***** ****** ********* ******* ** your ********* ********* *** **** ** you *** ** ******** times per user) **** ****** **** displayed ******* ****** look like *** ********* (but with *** ******* ********** *** ******* ********** ****** ******* *** *** ********* tps-report-02092016 ******************* ******************* tps-report-02122016 END REPORT ******* ** Document the ******* ******** **** **** ** ********** the ********* ****** Take * ********** ** **** ********* directory **** **** ***** ********* *** ******* ******* **** * ********** ** your tps-report-gensh ****** I **** this is *** right *** *** not a complete fail34 **** * screenshot or ******** *********** if ****** ** *** output ********* **** running the script *** each of *** three ****** ***** a ****** ** ********* ********* **** ******* ******* *** ********* for ********* *** ******** *** **** ****** your ******** ******* was ** be **** to **** *** ******* listed ** **** * ***** ******* ****** *** at least *** ********* ** **** that *** not a ******** ***** Scripting **** ***** be ** *** ***** *** * will gladly **** ******** grade * *** get * **** **** to **** **** ***** so I *** ****** ** ********** Verification: **** * screenshot *** ******** *********** ** needed) **** ******** *** ****** ** the pwd *** history ******** Paste ***** screenshots **************** *** *********** ** **** ** **** *** ******* ***** Project ********** *** ****** ******** ** full as it ******** *** ******* that **** milestone ** ***** ****** and ******** *** ******** ******* ** *** ***** ******* that each milestone ****** on **** ******* **** ** inserted ******** **** **** ******** *** ********** marked ** *** indicate that ** answer ****** ********** ** expectedA *** **** area ** ****** Milestone One ********** ******* ************* ******* Use your ********* ** UNIX/Linux ** locate *** ********************** **** **** ** take * ********** of *** TPS ****** ** and paste *** ********** ****** **** ******* **** *** **** ******* *** ********************** **** copy it **** ***** *** ***** it into **** home ********* **** * *** ********* you ****** ******* *********** ***** *** ***** ** *** ****** *** **** ** the *** ReportC ********* ******* ********* the ********* ****** **** the updated report **** ** *** ****** ** ***** **** ***** * single ******* ****** (no duplicates) **** *** have ***** **** ** *** ***** copy **** ***** *** ***** ********* *** Report into **** home ********* (TPS-Reports *********** ****** Copies: ****** the *** ******* **** *** **** ****** into **** **** ********* (TPS-Reports directory) by ******** **** reports’ ******** to your console and ****** that ********** looks **** **** no *** ********** ** ***** ******** **** a ********** of *** ****** ******* ******** *** screenshot here:Work Verification: **** a screenshot *** ******** *********** ** ******* **** captures *** output ** *** pwd *** history ******** ***** ***** *********** ******** **** area ** ****** ********* *** ********** ******* ******* ** Changes **** ** this ********* ** ***** ** ** **** ******* you **** ******** several ***** assigned ** **** ******* **** **** ******** **** skills using vi ****** *** **** *********** You **** **** with *** *** Report ******** ***** ** ******* ** *** ********************* ********* and is ******* ************************ **** Report Template: ****** the *** ****** template ******** ** ******* *** ****** ******** ** ** and ***** ****** vi saving a **** ** *** ****** template ** ********* **** *** **** **** and ****** that newly saved copy ** *** report **** ******* ******* **** **** ** ******* *** you use ** vi ** **** *** copy to *** ********* directory ***** **** ****** ** *** current ******* file?:w ************************ ************ ***** **** *** ** *** following ******* ** *** copy ** the ****** ******** located ** SLASH/tmp *** answer *** indicated ********* ** ******** ** *** ***** being *********** ****** ***** reference ** the **** **** to **** Can **** ** done ** *** ******** ** ** what ******** Yes ************** **** ** the *** of the ******** ****** What ******* did you use? *** ****** *** ***** **** ******** ** TEMPLATE **** ********** *** you *** ** ****** the ********** Working ** ******* *** Edit Mode: Make *** of *** ********* ******* to the **** ** the report ******** ******* in ********* and ****** the ********* ********* ** ******** ** *** ***** ***** *********** **** ** *** ****** ** the ****** ******** ***** * single ******* **** command *** *** use? Ecs ** ** *** bottom ** *** report ******** **** *** ******************** ***************** ********* Move ** line ** **** * single ******* What ******* *** you **** *** **** Delete **** 10 to **** ** Can **** be **** **** one ******** If so what ******** If *** **** ********** *** *** **** **** ** ******* ******** Display *** ** ******* of commands that you have run *** take screenshot(s) to ******* *** ****** ******* ** ******* the ** ******* ******* in ******* mode **** *** ********* *** hit ************** ******** *** ********** ****** **** and exit ** **** a single command What ******* *** *** ******** Verification: Take * ********** *** ******** screenshots if ******* **** ******** the ****** ** *** *** and ******* ******** ***** ***** *********** here:Use **** **** ** ****** ********* ***** ********** ******* areas):No ******* to this ********* ***** *** ****** were received *** **** *********** ******** *** ****** **** section you **** investigate ***** ******* ******* **** *** **** received ********* **** ****** **** **** arisen related ** *** **** ******** ** ***** ********** Issues **** **** ********* *** **** ***** listed **** *** ******* ********* **** ** taking a ********** of *** ********* ************* *** * screenshot ** the ***** ******* ****** the ************* *** ***** *** ******** *** ********** ******* ** ******* **** ******** Employee * ****** ********* ** *** *********** ********* **** ********** and ******** **** *** account is ** ********* ** company policy and that *** ******** ** ******* ** ********** *** ******* *** *************** ************* ****************** message ** *** *********************** ******* ****** ********** ******** *** user *** with a ***** ********* ******** 2 ******** ****** to *** **** *** **** account ** ******** *** ***** ******* ****** ****** ** ******* ********** ********** ****************** ************* ****************** ******* ** log *********************** ******* ****** response)?Reset ****** ********* ******** 3 ******** ******* **** he receives the following ***** message **** ** logs **** *** **** ******** “warning: cannot change ********* ** ************ ********** ********* ******** ** *** error ********* /home/henry/bash_profile: ********** ********* Oddly *** command ****** is ********* **** **** he ******* **** ** ******** ** ***** ****** ********************* *** set ****************** ******* (typed ********** Set *********** *** ****** Correct Permissions: You received * ******* ticket indicating that *** SLASH/data directory ** no ****** ******** ******* *** *********** ** user read/write/execute group ********** *** ***** **** ******* **** *** ** *** ********** directory *** take * screenshot ** *** *********** *** screenshot ****** ******* Log Files: *** **** ***** *** **** *** lines ** output ** * few ********* *** files Tail the **** 5 ***** ** *** messages *** **** *** *** **** * lines ** the ****** *** **** ********** *** ****** **** both **** commands ***** the ********** ********* Verification: Take * ********** *** multiple screenshots ** ******* **** ******** *** ****** ** the pwd *** ******* ******** ***** ***** *********** ******** **** **** ** ****** ********* **** (highlight ******* ******* *** areas ** this Milestone were ****** ** ** * ********* ********* ** 251 ********* **** ********** *** *************** ********* ** * **** ********* ***** ** have when working ** * **** ****** ************* and *** that **** **** **** *** much **** tedious *** **** **** ********* This milestone **** **** you **** **** basic ********* **** ** the **** way you ***** ****** *** information ********** professionPrompt: *** **** ********* *** will complete ******* tasks ******** by your ******* ****** the **** environment Specifically *** ********* ******** elements must be addressed ** **** ********** IV ScriptingOne ** **** ********* ***** **** **** * script **** ** *** **** ******* ** *** cannot **** to *** ******* ** has ****** *** bad script ************* **** **** **** ********* under the ******* directory (~/scripts/superscriptsh) ***** correcting *** ****** ***** a simple ****** ** **** *** to ****** ** ********** **** info **** **************** *** *************** ** **** **** administration ******** ******* *** ******* ******* **** coworker's ****** **** *** ****** executable (owner *** ***** *** world) execute *** ********* ****** **** a screenshot ** *** ****** ****** **** **** * screenshot ** the ******** script output *** ******** **** correction *** made ** *** ****** to get ** working and ******* why *** **** ***** ********* ****** **** *************** ******** ****** ****** *************** · *********** ** each ********** made to *** ****** *** ****** ***** in the ****** there **** extra ****** ** *** beginning *********** removed extra ***** ** ***** would see the ******* *** ** ***** ***** **** *** *** ******* *** commented out ** *** * ***** in ***** ** ** ******* * ** *** ******* ***** *** **** found that ***** was * ***** ** ***** ** *** * which *** stopping the ******* **** ******* ******* **** ***** ** ******* and *** able ** *** *** ******* User Administration ******* Create a ****** **** **** ****** ** retrieving **** *********** *** **** the ********* requirements:· ****** **** ** built in **** ********* ********* *** should ** named ************** ** the ****** **** **** the top ** *** ****** below *** ** *** * ********* **** **** **** **** ****** *** **** ******** ** a ***** newline· ***** **** script ** ** takes the ******** ***** **** of * **** *** returns *** ********* output *** ****** ****** ******** information *** the **** *** script ** *** ******* *** ** error ******* ** ** **** ** ***** ***** ** **** will ** *** ***** *** Notaperson *** *** ***** ****** return the correct information *** ********** ****** ****** ** error ******* of ** such person ***** *** ***** is no Notaperson user)1 ** *** ****** ***** format:sh ************ ***** userlookupsh ******* ************ *********** ******** ****** ****** (will differ based ** *** **** and will ******* ** ***** when a **** ** *** *********************************************************************** ******* *** may **** ** test ******* commands ** *** shell ****** ** get the ****** you are ******* *** and then **** *** pieces **** ***** to **** ** ******** **** *** ****** ** get the ******* final output4 *** *** *********** ** userlookupsh ** ***** *** group ********** **** ****** *** ******* the ****** ***** times—once *** *** ***** *** *************** *** ****** ***** above5 ********** the **** for **** ****** ******* Screenshot *** ******* from ********* the ****** *** ***** times7 ***** * ****** ** ********* ********* **** ******* ******* *** ********* *** ********* *** ******** *** **** ****** **** ******** ********** the **** *** your ****** ****** and ***** *** ************* here:· ********** *** outputs **** ********* the script *** ***** ***** *** ***** the screenshot(s) here:· ***** * ****** ** ********* ********* your thought ******* *** ********* *** ********* the commands *** **** ****** **** script: ******** to *** *** idea ** ********* ****** * *** ** the **** *** *** final ********* ***** you *** **** **** *** ********** **** ** the ********* to ****** ************* Take * ********** *** ******** *********** if needed) **** ******** *** output ** the *** *** ******* ******** ***** ***** screenshots *****