Microsoft Windows: Як зібрати Perfmon з усіх вузлів кластера за допомогою PowerShell

Zusammenfassung: У цій статті пояснюється, як збирати журнали продуктивності з усіх вузлів кластера за допомогою PowerShell.

Dieser Artikel gilt für Dieser Artikel gilt nicht für Dieser Artikel ist nicht an ein bestimmtes Produkt gebunden. In diesem Artikel werden nicht alle Produktversionen aufgeführt.

Weisungen

Запустіть powershell від імені адміністратора, а потім скопіюйте та вставте таку команду:

Get-ClusterNode).Name | % {Invoke-Command -ComputerName $_ -ScriptBlock {"$(logman create counter FULL-Short -o "c:\diag\%computername%_PerfLog-Short.blg" -f bincirc -v mmddhhmm -max 500 -c "\Cache\*" "\Cluster CSV File System(*)\*" "\Cluster CSV Volume Cache(*)\*" "\Cluster CSV Volume Manager(*)\*" "\Cluster CSVFS(*)\*" "\Cluster Storage Cache Stores(*)\*" "\Cluster Storage Hybrid Disks(*)\*" "\Hyper-V Hypervisor Logical Processor(*)\*" "\Hyper-V Hypervisor Partition(*)\*" "\Hyper-V Hypervisor Root Partition(*)\*" "\Hyper-V Hypervisor Root Virtual Processor(*)\*" "\Hyper-V Hypervisor Virtual Processor(*)\*" "\Hyper-V Virtual IDE Controller (Emulated)(*)\*" "\Hyper-V Virtual Storage Device(*)\*" "\LogicalDisk(*)\*" "\Memory\*" "\Network Adapter(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" "\Process(*)\*" "\Processor Information(*)\*" "\RDMA Activity(*)\*" "\ReFS(*)\*" "\SMB Client Shares(*)\*" "\SMB Direct Connection(*)\*" "\SMB Server\*" "\SMB Server Sessions(*)\*" "\SMB Server Shares(*)\*" "\Storage Spaces Drt(*)\*" "\Storage Spaces Virtual Disk(*)\*" "\Storage Spaces Write Cache(*)\*" "\System\*" -si 00:00:02)"+"$(logman start Full-Short)"}}


Це створює лічильник perfmon на кожному вузлі кластера і запускає perfmon Журналювання. Як тільки пройде достатньо часу, щоб зіткнутися з проблемою продуктивності, зупиніть перфмон за допомогою наступної команди:

#Stop logmasn trace
(Get-ClusterNode).Name | % {Invoke-Command -ComputerName $_ -ScriptBlock {"$(logman stop Full-Short)"}}



Коли всі необхідні дані про перфмон зібрані, видаліть лічильник перфмонів за допомогою наступної команди:

#Remove logman trace
(Get-ClusterNode).Name | % {Invoke-Command -ComputerName $_ -ScriptBlock {"$(logman Delete Full-Short)"}}


Якщо потрібно зібрати додаткові журнали:
wpr -start CPU -start FileIO -start GeneralProfile -start MiniFilter     
(For 10 seconds when issue is happening.)
wpr -stop C:\PerfLogs\Admin\wpr.etl

Betroffene Produkte

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2008 Server R2, Microsoft Windows 2008 Server Service Pack 2, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2

Produkte

Microsoft Hyper-V™ Server 2008, Microsoft Windows Small Business Server 2008, Microsoft Windows Small Business Server 2011 Essentials, Microsoft Windows Small Business Server 2008, Microsoft Windows Essential Business Server 2008
Artikeleigenschaften
Artikelnummer: 000193585
Artikeltyp: How To
Zuletzt geändert: 12 Mai 2026
Version:  8
Antworten auf Ihre Fragen erhalten Sie von anderen Dell NutzerInnen
Support Services
Prüfen Sie, ob Ihr Gerät durch Support Services abgedeckt ist.