Microsoft Windows: Come raccogliere Perfmon da tutti i nodi di un cluster con PowerShell
요약: Questo articolo spiega come raccogliere i registri delle prestazioni da tutti i nodi di un cluster con PowerShell.
이 문서는 다음에 적용됩니다.
이 문서는 다음에 적용되지 않습니다.
이 문서는 특정 제품과 관련이 없습니다.
모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.
지침
Eseguire PowerShell come amministratore, quindi copiare e incollare il seguente comando:
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)"}}
In questo modo viene creato un contatore perfmon su ogni nodo del cluster e viene avviato il perfmon Registrazione. Una volta trascorso un tempo sufficiente per riscontrare il problema di prestazioni, arrestare perfmon con il seguente comando:
#Stop logmasn trace
(Get-ClusterNode).Name | % {Invoke-Command -ComputerName $_ -ScriptBlock {"$(logman stop Full-Short)"}}
Una volta raccolti tutti i dati perfmon necessari, rimuovere il contatore perfmon con il seguente comando:
#Remove logman trace
(Get-ClusterNode).Name | % {Invoke-Command -ComputerName $_ -ScriptBlock {"$(logman Delete Full-Short)"}}
Se è necessaria una maggiore raccolta di registri:
wpr -start CPU -start FileIO -start GeneralProfile -start MiniFilter (For 10 seconds when issue is happening.)
wpr -stop C:\PerfLogs\Admin\wpr.etl
해당 제품
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제품
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문서 속성
문서 번호: 000193585
문서 유형: How To
마지막 수정 시간: 05 9월 2025
버전: 7
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.