================================================= Directions and preparing for Test #3 (Final Exam) [First DRAFT] ================================================= -Ian! D. Allen - idallen@idallen.ca [First DRAFT - subject to minor modifications] Mark weight: see the NET2003 course outline As mentioned on the course home page, your final test begins at 14h00 (2 PM) on Monday, April 25, 2005 in lab rooms T114 and T115. (Some selected students will also be writing in T111.) The final test ends at 17h00 (5 PM). Manage your time. (Selected students in T111 will be writing until 18h30 [6:30 PM].) The test is in four parts: (1) one set of Multiple Choice, (2+3) writing and/or modifying some small shell scripts, and (4) an analysis of some existing Linux network configurations. Bring two soft pencils (and a very good eraser) for the Multiple Choice part of the test. Bring your tested and working Knoppix 3.7 CD to the test. Boot your Knoppix CD at home and type "knoppix testcd" at the Knoppix boot prompt to verify that your CD has no hidden damage that will cost you time during the test. The multiple-choice questions are worth 1/3 of the mark. The script writing/modifying questions are (together) worth the 1/3 of the mark. The network analysis question is worth 1/3 of the mark. One third of the mark means one-third of the time - manage your time. This is a Final Test - all the course material is open to questions, including all exercises, previous tests, and practice tests. Many sample test questions and answers have been made available for the previous two tests. The weekly notes files also contain specific questions about the important material in the course text book. Checking your hardware ---------------------- When you arrive in the test room, before and while you are working on the multiple-choice questions in Part I, boot your computer with your Knoppix CD and run "testcd" at the "boot:" prompt to make sure the computer will be available for the online parts of the test. You may *not* use your computer during the first parts of the test. You may only *boot* the computer to verify that it is fully functional. ------ Part I - closed book, no computer, multiple choice with Crib Sheet ------ Required: two soft pencils (pencil *ONLY*) and a good eraser. The first part of the test is multiple choice questions, filled out in soft pencil on the usual blue mark-sense "bubble" sheets. This part is closed book and no computer, except that you may have with you a "crib sheet". For full marks, follow all the directions below. Crib Sheet ---------- *) A crib sheet is one single piece of paper (metric A4 or standard Letter size) filled with anything you want to put there. You may use both sides. You may hand write the paper or you may machine print it with tiny letters - you choose. You can put text or pictures or programs or anything you want there. You can copy the entire course textbook onto the page, if you can read it. Magnifying glasses are permitted. *) You must prepare your own crib sheet. You will submit your crib sheet at the end of the test. People who have copied parts of their crib sheets from other people will have their marks divided by two. Prepare your own crib sheet. *) Put your name on your crib sheet. Answering Questions ------------------- *) Put your full, unabbreviated name on the mark-sense bubble sheet. Use the exact name you gave the Registrar - that's the name the computer is looking for when it matches your name against its database. Use the exact name with which you are registered. Pay attention to the order of Last and First names. Spelling counts. *) I want to measure what you know, not what you don't know. Answer all the questions you know, first. Don't waste time with questions about which you are unsure. Guess the answer or come back to them later. *) Concentrate on your own answers. There are different versions of the test in the room. Your answers will not match the answers of the people around you. That's okay. Relax. Breathe. *) Bring two soft pencils and a good eraser. Erase mistakes completely - the mark-sense scanner machine is very sensitive to partial marks. ------- Part II - closed book, no computer, shell script writing with Crib Sheet ------- In the second part of the test you will write, closed book, no computer, on paper, a shell script. You will use the same Crib Sheet as you used in Part I. You write on paper only. No notes; no computer. Follow the simplified shell script comment style given at the bottom of this file. Here are other time-saving tips: *) Start writing your script *only* on the right hand pages in your test booklets. Put only two or three steps on each page and leave *lots* of white space above and below for corrections. Major corrections can be written on the left hand pages and inserted (using drawn arrows) if you run out of space on the right page. Start on the right; leave lots of space above and below each step; add code on the left had pages only if you need to. Leave lots of space! *) Don't waste time erasing large chunks of your script. Cross it out and start over if you have to. Use erasing only to handle minor corrections. Don't erase entire steps - cross them out and just rewrite them. Your script has to be readable; but, it doesn't have to be beautiful. Crossing out is usually faster and cleaner than erasing and rewriting. *) Even though you are using paper, you are still writing an executable script. Every line you put on the paper must be either a comment or a valid shell script command line. If you want to write notes to me or to yourself on the script pages, use proper shell comments. *) Unix is case-sensitive. Don't write upper-case letters unless you mean to use upper-case letters. There is no such command as "DATE". -------- Part III - online, open text, open notes shell script writing (no Internet) -------- Required: Your tested and working Knoppix 3.7 CDROM disc. After you have finished and handed in Part I and Part II, you may use your notes, textbook, and computer for the rest of the test. You will have access to copies of the files in your Course Linux Server account, and to the NET2003 course notes; but, you will not have access to the Internet. You will be required to write and/or modify executable shell scripts online using the VIM editor. For scripts that you write from scratch, follow the simplified shell script comment style given at the bottom of this file. Part III is online and fully open book, open textbook, open notes, open computer using your Knoppix 3.7 CD. The script work will be done online through remote login to another computer in the lab. You will not have access to the Internet. A copy of all NET2003 course notes will be available on the test machine in the usual place, under ~idallen/public_html/teaching/net2003/05w/notes/ (This is where they have always been on the Course Linux Server as well.) The Internet will not be available. Know how to find the course notes under my account, via the shell. You may find it useful to log in multiple times to the Test Server during the test, so that you can be doing several things at the same time in different windows. You can use multiple windows or you can use the tabbed multiple shell sessions available with the Knoppix terminal emulator program. Your Course Linux Account files ------------------------------- The NET2003 course notes and all the files in your account on the Course Linux Server will be *copied* from the Course Linux Server to your account on my test machine some time after 7am on the day of the test. Files created or modified in your Course Linux Server account after 7am on the day of the test may not be copied to my test computer and may not be available during the test. No Internet is available during the test. ------- Part IV - Linux networking analysis ------- Required: Your tested and working Knoppix 3.7 CDROM disc. Part IV is also online and fully open book, open note, open computer using your Knoppix CD. The test will also be done online through remote login to another computer. You will be required to answer configuration questions about the protocols and services studied in NET2003. This part of the test will be heavily based on work done in lab exercises. You must be able to find and understand the start-up scripts and configuration files for each of the network services studied. You may be presented with new real or fictitious services and asked to locate their start-up scripts and configuration files, just as you did in your exercises this term. ================================ Script Style and Rules for Tests ================================ For the shell script sections that you write yourself in Parts II and III, the format of the main part of the shell script you will prepare must look similar to this: # Step 2 date echo "hi there" # Step 3 who ls -l /etc/passwd Each step in the script (except Step 1) must be preceded by exactly one single comment line that starts with '#' that contains a step number comment (only the step number is needed), exactly as you see above. These are the *only* comment lines you need in front of each step. After each single step-number comment line come the shell commands that you use to answer the questions for that step. Do not put a Step comment as the first line of an executable script. Scripts must start with a correct NET2003 script header that includes internal documentation (one-line description, Syntax, Purpose, etc.), an interpreter line, and lines to set the shell search path, the default permissions for newly created files, and an ASCII sort order. For full marks, follow the full ten-part format used in previous scripts and described in Notes file script_style.txt. Some script specifications allow you to omit some parts of the 10-part format; read the actual script directions carefully. You will not be required to write "while" or "for" loops on this test, though you may be asked to read and understand code that uses them.