AZ 801 Exam study Guide

Lab answer key: Monitoring and troubleshooting Windows Server

Note: An interactive lab simulation is available that allows you to click through this lab at your own pace. You may find slight differences between the interactive simulation and the hosted lab, but the core concepts and ideas being demonstrated are the same.

Exercise 1: Establishing a performance baseline

Note: After starting the Data Collector Set, there might be a delay of 10 minutes for the results to appear.

Task 1: Create and start a data collector set

  1. Connect to SEA-SVR2, and then, if needed, sign in as CONTOSO\Administrator with the password Pa55w.rd.
  2. On SEA-SVR2, in the Type here to search text box next to the Start button, enter Perf, and then, in the Best match list, select Performance Monitor.
  3. In Performance Monitor, expand the Data Collector Sets node in the navigation pane, and then select User Defined.
  4. Right-click or access the context menu for User Defined, select New, and then select Data Collector Set. This will launch the Create new Data Collector Set wizard.
  5. On the How would you like to create this new data collector set? page of the Create new Data Collector Set wizard, enter SEA-SVR2 Performance in the Name box.
  6. Select the Create manually (Advanced) option, and then select Next.
  7. On the What type of data do you want to include? page, select the Performance counter checkbox, and then select Next.
  8. On the Which performance counters would you like to log? page, select Add.
  9. In the Available counters list, expand Processor, select % Processor Time, ensure that the _Total entry is selected in the Instances of selected object section, and then select Add.
  10. In the Available counters list, expand Memory, select Pages/sec, and then select Add.
  11. In the Available counters list, expand PhysicalDisk, select % Disk Time, ensure that the _Total entry is selected in the Instances of selected object section, and then select Add.
  12. Select Avg. Disk Queue Length, ensure that the _Total entry is selected in the Instances of selected object section, and then select Add.
  13. In the Available counters list, expand System, select Processor Queue Length, and then select Add.
  14. In the Available counters list, expand Network Interface, select Bytes Total/sec, ensure that the **** entry is selected in the **Instances of selected object** section, select **Add**, and then select **OK**.
  15. On the Which performance counters would you like to log? page, enter 1 in the Sample interval box, and then select Next.
  16. On the Where would you like the data to be saved? page, select Next.
  17. On the Create the data collector set? page, ensure that the Save and close option is selected, and then select Finish.
  18. In Performance Monitor, in the results pane, right-click or access the context menu for SEA-SVR2 Performance, and then select Start.

Task 2: Create a typical workload on the server

  1. On SEA-SVR2, select Start, right-click or access the context menu for Windows PowerShell, and then select Run as administrator.
  2. To create a file of a specific size, at the Windows PowerShell command prompt, enter the following command and press Enter:
    Code
    fsutil file createnew bigfile 104857600
    
  3. To copy the newly created file to the root of drive C of SEA-DC1, enter the following command and press Enter:
    Code
    Copy-Item -Path .\bigfile -Destination \\SEA-DC1.contoso.com\c$\ -Force
    
  4. To copy the file from the root of drive C of SEA-DC1 to the current working directory, enter the following command and press Enter:
    Code
    Copy-Item -Path \\SEA-DC1.contoso.com\c$\bigfile -Destination .\bigfile2 -Force
    
  5. To delete both files in the current working directory, enter the following command and press Enter:
    Code
    Remove-Item -Path .\bigfile* -Force
    
  6. To delete the file in the root of drive C of SEA-DC1, enter the following command and press Enter:
    Code
    Remove-Item -Path \\SEA-DC1.contoso.com\c$\bigfile -Force
    
  7. Leave the Windows PowerShell window open.

Task 3: Analyze the collected data

  1. On SEA-SVR2, switch to Performance Monitor.
  2. In the navigation pane, right-click or access the context menu for SEA-SVR2 Performance, and then select Stop.
  3. In Performance Monitor, in the navigation pane, expand Reports, expand User Defined, expand SEA-SVR2 Performance, select SEA-SVR2_DateTime-000001 (where DateTime designates the current timestamp), and then review the report data.
  4. On the menu bar, select Change graph type or press Ctrl+G, and then select Report.
  5. Record the values that are listed in the report for later analysis. Recorded values include:
    • Memory\Pages/sec
    • Network Interface\Bytes Total/sec
    • PhysicalDisk\% Disk Time
    • PhysicalDisk\Avg. Disk Queue Length
    • Processor\% Processor Time
    • System\Processor Queue Length

Exercise 2: Identifying the source of a performance problem

Task 1: Create additional workload on the server

  1. On SEA-SVR2, open File Explorer.
  2. In File Explorer, browse to C:\Labfiles\Lab08.
  3. Double-click or select CPUSTRES64.EXE, and then press Enter.

    NoteCPUSTRES64.EXE is a SysInternals utility that can be used to simulate CPU activity by running up to 64 threads in a loop.

  4. In the CPUSTRES License Agreement dialog box, select Agree.
  5. In the CPU Stress dialog box, right-click or access the context menu for the highlighted thread at the top of the list of running threads, select Activity Level, and then select Busy (75%).

Task 2: Capture performance data by using a data collector set

  1. On SEA-SVR2, switch to Performance Monitor.
  2. In Performance Monitor, expand Data Collector Sets, and select User Defined.
  3. In the results pane, right-click or access the context menu for SEA-SVR2 Performance, and then select Start.

    Note: Wait 1 minute to allow the data capture to occur.

Task 3: Remove the workload and review the performance data

  1. On SEA-SVR2, switch to CPU Stress dialog box and close it.
  2. Switch to Performance Monitor.
  3. In the navigation pane, right-click or access the context menu for SEA-SVR2 Performance, and then select Stop.
  4. In Performance Monitor, in the navigation pane, expand Reports, expand User Defined, expand SEA-SVR2 Performance, select SEA-SVR2_DateTime-000002 (where DateTime designates the current timestamp), and then review the report data.
  5. On the menu bar, select Change graph type or press Ctrl+G, and then select Report.
  6. As before, record the values that are listed in the report. Recorded values include:
    • Memory\Pages/sec
    • Network Interface\Bytes Total/sec
    • PhysicalDisk\% Disk Time
    • PhysicalDisk\Avg. Disk Queue Length
    • Processor\% Processor Time
    • System\Processor Queue Length

Exercise 3: Viewing and configuring centralized event logs

Task 1: Configure subscription prerequisites

  1. On SEA-SVR2, switch to Windows PowerShell.
  2. To enable creating and managing subscriptions of events forwarded to SEA-SVR2, enter the following command and press Enter:
    Code
    WECUtil qc /q
    
  3. To ensure that the event source and collector have their local date and time synchronized, enter the following command and press Enter:
    Code
    w32tm /resync /computer:SEA-DC1.contoso.com
    
  4. To allow WinRM connectivity in case of Kerberos authentication issues, enter the following command and press Enter:
    Code
    Set-Item WSMan:localhost\client\trustedhosts -Value *.contoso.com -Force
    
  5. To establish a PowerShell Remoting session to SEA-DC1, enter the following command and press Enter:
    Code
    Enter-PSSession -ComputerName SEA-DC1.contoso.com
    
  6. To ensure that Windows Remote Management (WinRM) is enabled on SEA-DC1, enter the following command and press Enter:
    Code
    winrm qc
    

    Note: Verify that the WinRM service is already running and that it’s set up for remote management.

  7. To ensure that the relevant Windows Defender Firewall with Advanced Security rules are enabled on SEA-DC1, enter the following command and press Enter:
    Code
    Set-NetFirewallRule -DisplayGroup 'Remote Event Log Management' -Enabled True -Profile Domain -PassThru
    

    Note: Leave the Windows PowerShell window open.

  8. On SEA-SVR2, in the Type here to search text box next to the Start button, enter Active, and then, in the Best match list, select Active Directory Users and Computers.
  9. In the Active Directory Users and Computers console, select the Builtin container.
  10. In the Builtin container, select the Event Log Readers group.
  11. Right-click or access the context menu for the Event Log Readers group, select Properties, and then, in the Event Log Readers Properties dialog box, select the Members tab.
  12. On the Members tab, select Add.
  13. In the Select Users, Contacts, Computers, Service Accounts or Groups dialog box, select Object Types.
  14. In the Object Types dialog box, select the Computers checkbox, and then select OK.
  15. In the Select Users, Computers, Service Accounts or Groups dialog box, enter SEA-SVR2 in the Enter the object names to select box, and then select OK.
  16. In the Event Log Readers Properties dialog box, select OK.

Task 2: Create a subscription and verify the results

  1. On SEA-SVR2, in the Type here to search text box next to the Start button, enter Event, and then, in the Best match list, select Event Viewer.
  2. In Event Viewer, select Subscriptions in the navigation pane.
  3. Right-click or access the context menu for Subscriptions, and then select Create Subscription.
  4. In the Subscription Properties dialog box, enter SEA-DC1 Events in the Subscription name box.
  5. Ensure that the Collector initiated option is selected, and then select Select Computers.
  6. In the Computers dialog box, select Add Domain Computers.
  7. In the Select Computer dialog box, enter SEA-DC1 in the Enter the object name to select box, and then select OK.
  8. In the Computers dialog box, select OK.
  9. In the Subscription Properties – SEA-DC1 Events dialog box, select Select Events.
  10. In the Logged drop-down list, select Last 24 hours.
  11. In the Query Filter dialog box, select the CriticalErrorWarning, and Information checkboxes.
  12. In the Event logs drop-down list, expand Windows Logs, and then select the System and Application checkboxes.
  13. In the Query Filter dialog box, select OK.
  14. Back in the Subscription Properties – SEA-DC1 Events dialog box, select OK.
  15. On SEA-SVR2, switch to the Event Viewer window, and then expand Windows Logs in the navigation pane.
  16. Select Forwarded Events and verify that the forwarded events include those generated on SEA-DC1.

Leave A Comment

Certifs IT Library

Explore our comprehensive web library to Find a wealth of invaluable resources, including extensive documentation and hands-on labs.

Inscription ouverte pour la formation Vmware VCP-DCV 2024
Mai 2024