Apply Your Knowledge
Monitoring, optimizing, and troubleshooting computers are important everyday tasks that desktop and systems administrators must be capable of performing. The following exercises are designed to reinforce your knowledge of topics presented in this chapter and prepare you for the corresponding sections of the 70-270 exam. You should have two computers running Windows XP Professional to perform these exercises.
Exercises
9.1 Logging Computer Performance
The Performance Logs and Alerts snap-in enables you to create a performance log on your computer, which you can view from System Monitor. Perform this exercise on any computer running Windows XP Professional.Estimated Time: 20 minutes.1. Click Start, All Programs, Administrative Tools, Performance.2. Expand the Performance Logs and Alerts entry in the console tree and double-click Counter Logs.3. Right-click a blank area in the details pane and select New Log Settings.4. In the New Log Settings dialog box, type Test Log as a log name and click OK.5. In the Test Log dialog box, click Add Counters.6. For the Processor object, select % Processor Time and Interrupts/Sec, and then click Add.7. In the Performance object drop-down list box, select Memory. Select the Available Bytes and Pages/Sec counters, and then click Add.8. Click Close.9. In the Test Log dialog box, change the sampling interval to 1 second, and then click OK.10. Generate some CPU and memory activity on your computer by performing one or more of the following tasks:Run any application on your computer.Connect to a share on another computer and open files from this share.Open a 3D screen saver and preview it for a few seconds.
11. After about two minutes, right-click your test log and click Stop. The icon turns red, indicating it is no longer logging.12. In the console tree, select System Monitor.13. In the System Monitor toolbar, select the cylinder icon (the fourth icon from the left). This displays the Source tab of the System Monitor Properties dialog box.14. Under Data Source, select Log files and then click Add.15. Browse to the location of your test log file (which is by default in the %systemroot%\PerfLogs folder), click Open, and then click OK.16. Click the + button in the toolbar to display the Add Counters dialog box, which displays only the logged counters.17. For the Memory object, select All Counters, and then click Add. Repeat for the Processor object.18. Click Close. The details pane displays the data you have just logged.19. To highlight an individual line, select the desired counter in the bottom part of the display and then click the yellow light bulb in the toolbar.20. Highlight the other lines in turn, and observe how the performance counters change in response to your actions performed while logging.
9.2 Configuring and Viewing Alerts
The Performance Logs and Alerts snap-in also enables you to configure alerts that are generated when a performance counter exceeds a limit that you have specified. In this exercise you configure and view an alert. Perform this exercise on any Windows XP Professional computer.Estimated Time: 15 minutes.1. Click Start, All Programs, Administrative Tools, Performance.2. Expand the Performance Logs and Alerts entry in the console tree and select Alerts.3. Right-click a blank area in the details pane and select New Alert Settings.4. In the New Alert Settings dialog box, type Test Alert as an alert name and click OK.5. In the Test Alert dialog box, click Add and add the Processor\% Processor Time counter.6. Click Close.7. In the Test Alert dialog box, ensure that the Alert When the Value Is drop-down list says Over, type 85 for a limit, and then click OK.8. Open the Screen Saver tab of the Control Panel Display applet. Select one of the 3D screen savers and then click Preview.9. After about 30 seconds, move the mouse or press the space bar to stop the preview. This action should generate one or more performance alerts.10. Click Start, All Programs, Administrative Tools, Event Viewer.11. Select the Application log from the console tree. You should see one or more information events in the details pane.12. Double-click the top (most recent) event. This event should inform you that the Processor\% Processor Time counter has exceeded its alert threshold.13. Click the down arrow to display additional messages.14. If you do not observe any alert messages, open a processor-intensive program and repeat steps 8 to 13. If you still do not observe any alert messages, return to the Performance Console, right-click your alert, and select Properties. Type a lower value for the alert, and then repeat steps 8 to 13.15. When you are finished, right-click your alert and choose Stop. Close all dialog boxes, clicking Cancel to close the Display Properties dialog box without modifying the default screen saver.
9.3 Configuring and Viewing a Power Scheme
The Power Schemes feature in Windows XP Professional assists users of portable computers in optimizing power usage. In particular, you can configure the computer to enter standby and hibernation modes. In this exercise you configure a power scheme to place your computer in standby mode.If you have a laptop computer, use it to perform this exercise. You can also perform it on a desktop computer running Windows XP Professional that is enabled for standby. If the System Standby option does not appear in step 3, standby is not available on your computer.Estimated Time: 10 minutes.1. Click Start, Control Panel, Performance and Maintenance, Power Options.2. On the Power Schemes tab of the Power Options Properties dialog box, select Max Battery.3. Under System Standby, select After 1 Min from the drop-down list and then click Apply.4. Select the Advanced tab, and then select the check box labeled Prompt for Password when Computer Resumes from Standby.5. Wait one minute, and observe that the computer displays a Preparing to Go into Standby message and goes into standby.6. Press the spacebar or move the mouse. After a few seconds, the Unlock Computer dialog box appears.7. Type your password and press Enter. Your desktop re-appears, configured as it was when the computer went into standby.8. In the Power Schemes drop-down list, return your computer to the previous setting.
9.4 Installing the Recovery Console
Recovery Console enables you to recover a computer that is unable to boot properly. In this exercise you install the Recovery Console.Estimated Time: 5 minutes.1. Insert the Windows XP Professional CD-ROM.2. Close the Welcome to Microsoft Windows XP window.3. Click Start, Run, type d:\i386\winnt32 /cmdcons. If your CD-ROM drive is not d:, substitute the proper drive letter.4. You are asked whether you want to install the Recovery Console. Click Yes.5. Wait while the Recovery Console is installed, and then click OK when the completion message appears.
9.5 Using the Recovery Console
After you have installed the Recovery Console, you can use it whenever required. In this exercise, you observe the effect of the Recovery Console by employing it to restart a service you have stopped from the Services Console.Estimated Time: 20 minutes.1. Click Start, right-click My Computer, and choose Manage.2. In the Computer Management Console, expand Services and Applications, and then click Services.3. Scroll to locate Server, right-click this service, and choose Properties.4. Click Stop.5. A Stop Other Services dialog box informs you that the Computer Browser service will also stop. Click Yes to stop these services.6. When you are informed that the services have stopped, change the startup type of the Server service to Disabled and then click OK.7. To observe the effect of stopping the Server service, open the Shared Folders node in the Computer Management Console. Click Shares. You should receive an error message informing you that the Server service is not started.8. Attempt to connect to a share on this computer from another computer. This should fail because the Server service is not running.9. To use the Recovery Console for restarting the server service, shut down and restart the computer.10. From the boot loader menu, choose Windows XP Recovery Console.11. When asked which Windows installation you would like to log on to, type the number of the installation and then press Enter.12. Type the Administrator password and then press Enter.13. When the Windows prompt appears, type listsvc and then press Enter. This displays a list of services and their status.14. Use the space bar to scroll until you see the LanmanServer service displayed. Note that this service is disabled.15. Press Esc to stop viewing the services.16. Type enable /? and press Enter to view the syntax of this command. Note the required syntax.17. To re-enable the Server service, type enable lanmanserver service_auto_start and press Enter. You should be informed that the service was started. If you receive an error or the help information again, check your command syntax and try again.18. Type exit. The computer reboots.19. Log on as Administrator and re-open the Computer Management Console.20. Repeat steps 7 and 8 and note that you can now observe and connect to the shares configured on this computer.
Review Questions
1.Name three types of items that the Performance Console uses for describing the data it collects. Compare and describe each briefly.2.Summarize the types of tasks that you can perform using Task Manager.3.Over what frequencies can you schedule applications to run using the Scheduled Tasks application?4.Describe the difference between standby and hibernation. Which one runs the risk of data loss should power be lost?5.How do incremental and differential backups differ from each other. Which one offers the shortest backup length, and which one enables the fastest restore?6.Which computer recovery utility should you not use until you have exhausted efforts to recover your computer using other methods, and why?
Exam Questions
1.Ryan is concerned with the performance of his Windows XP Professional computer because it does not appear to be responding as rapidly as it did a few months ago. He creates a counter log using Performance Logs and Alerts and logs his performance over the period of a workday. Then he uses System Monitor to display the collected data and notices the following results:Memory\Pages/sec: 62Processor\% Processor Time: 71LogicalDisk\% Disk Time: 74PhysicalDisk\% Disk Time: 63System: Processor Queue Length: 3
Which of the following system upgrades should Ryan do first?
Answers to Review Questions
Performance Console."Optimizing and Troubleshooting Application Performance."Configuring, Managing, and Optimizing Scheduled Tasks."Managing, Monitoring, and Optimizing System Performance for Mobile Users."Recovering System State Data and User Data by Using Windows Backup."Using Automated System Recovery (ASR)."
Answers to Exam Questions
Optimizing and Troubleshooting Memory Performance."Optimizing and Troubleshooting Application Performance."Recovering System State Data and User Data By Using Windows Backup."Performance Logs and Alerts."Recovering System State Data and User Data by Using Windows Backup."Using Automated System Recovery (ASR)."Managing, Monitoring, and Optimizing System Performance for Mobile Users."Managing, Monitoring, and Optimizing System Performance for Mobile Users."Optimizing and Troubleshooting Application Performance."Configuring, Managing, and Optimizing Scheduled Tasks."Using Automated System Recovery (ASR)."Troubleshooting System Restoration by Starting in Safe Mode."Returning to the Last Known Good Configuration."
Suggested Readings and Resources
The following are some recommended readings on the subject of monitoring and troubleshooting computer performance and reliability, and backing up and restoring computer files:Glenn, Walter and Tony Northrup, MCS/MCSE Self-Paced Training Kit (Exam 70-270): Installing, Configuring, and Administering Microsoft Windows XP ProfessionalChapter 15: "Monitoring, Managing, and Maintaining Network Resources"Chapter 16: "Backing Up and Restoring Data"Chapter 18: "Modifying and Troubleshooting the Boot Process"Microsoft Official Curriculum course 2285: Installing, Administering, and Configuring Microsoft Windows XP ProfessionalModule 7: "Configuring Windows for Mobile Computing"WebsitesMicrosoft Windows XP Performance, at Chapter 7, "Supporting Mobile Users"Chapter 11, "Configuring Windows XP Professional"Chapter 14, "Backup and Restore"Chapter 27, "Troubleshooting Startup"Appendix D, "Tools for Troubleshooting"