共用方式為


Load Test MP fragment

Shout to Tyson Paul for his initial MP with 2016, catch his blog here!

 

This should help speed up building the MP if you have Visual Studio 2013 or 2015 with Visual Studio Authoring Extensions (VSAE).  Read Kevin Holman's blog if this is new

 

Download the latest fragments here

 

Quicker method To build the MP as MP fragment, update the following:

  1. Import MP Fragment into Visual Studio for MP
  2. Replace variables in fragment
    1.   ##CompanyID##
    2.   ##AppName## - LoadTesting
    3.   ##ClassID## - WindowsServer
    4.   ##OSVersion## - 2012 = 6.2, 2012R2 = 2012.R2, 2016 = 100
    5.   ##MPReferenceID## - MWS2M for 2012, MWS2RM for 2012R2
    6.   ##RuleGUID##
  3. Obtain Rule names for Override Targets and Report rule GUID's for the report parameters section

          get-scomrule | ? { $_.DisplayName -like "System Processor Queue Length*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "Current Disk Queue Length*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "Current Disk Queue*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "Current Dis*k Queue*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Current Disk Queue*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Average Disk Seconds Per Transfer*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Logical Disk Idle Time*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Processor Time Total*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Memory Available Megabytes*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Network Adapter Bytes Total*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*Memory Pages per Second*" } | fl ID,DisplayName,Name

          get-scomrule | ? { $_.DisplayName -like "*System Processor Queue Length*" } | fl ID,DisplayName,Name

  1. Save and Import MP into environment
  2. Get Report parameter value for group ID

          get-ScomGroup | ? { $_.DisplayName -like "*Load Testing Group*" } | fl ID,DisplayName

  1. Update ##TargetGroupID##, MP version
    1. Save MP, and import into environment
  2. From SCOM Console, Authoring Tab
    1. Update group with explicit members
    2. Verify Group members
  3. From SCOM Console, Monitoring Tab
    1. Verify Performance view has performance counters
  4. From SCOM Console Reporting Tab (this may take a few minutes to push report to Reporting server)
    1. Open report and run
    2. Export data for analysis