Bookmark this page

Performing Lab Exercises

There are four types of lab activities that you might see in this course.

  • A guided exercise is a hands-on practice exercise that follows a presentation section. It walks you through a procedure to perform, step-by-step.

  • A quiz is typically used when checking knowledge-based learning, or when a hands-on activity is impractical for some other reason.

  • An end-of-chapter lab is a gradable hands-on activity to help you check your learning. You are provided with a set of high-level steps to perform, based on the guided exercises in that chapter, but the steps do not walk you through every command. You are also given a solution that provides a step-by-step walk-through.

  • A comprehensive review lab is used at the end of the course. It is also a gradable hands-on activity, but it might cover content from throughout the entire course. You are provided with a specification that details what you need to accomplish in the activity, but not the specific steps to do so. Again, you are given a solution that provides a step-by-step walk-through that meets the specification.

To prepare your lab environment at the start of each hands-on activity, run the lab start command with an activity name specified by the activity's instructions. Likewise, at the end of each hands-on activity, run the lab finish command with that same activity name to clean up after the activity. Each hands-on activity has a unique name within a course.

The syntax for running an exercise script is:

[student@workstation ~]$ lab action exercise

The action is a choice of start, grade, or finish. All exercises support start and finish actions. Only end-of-chapter labs and comprehensive review labs support the grade action.

start

The start action verifies the required resources to begin an exercise. It might include configuring settings, creating resources, ensuring prerequisite services are running, and verifying necessary outcomes from previous exercises. You can take an exercise at any time, even without taking the preceding exercises.

grade

For gradable activities, the grade action directs the lab command to evaluate your work, and displays a list of grading criteria with a PASS or FAIL status for each. To achieve a PASS status for all criteria, fix any failures and rerun the grade action.

finish

The finish action cleans up resources configured during the exercise. You can take an exercise as many times as you want.

The lab command supports tab completion. For example, to list all exercises that you can start, enter lab start and press the Tab key twice.

Revision: do374-2.2-82dc0d7