Microsoft Windows: PowerShell을 사용하여 클러스터의 모든 노드에서 perfmon을 수집하는 방법

Summary: 이 문서에서는 PowerShell을 사용하여 클러스터의 모든 노드에서 성능 로그를 수집하는 방법을 설명합니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

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 로깅. 충분한 시간이 경과하여 성능 문제가 발생하면 다음 명령을 사용하여 perfmon 을 중지합니다.

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



필요한 모든 perfmon 데이터가 수집되면 다음 명령을 사용하여 perfmon 카운터를 제거합니다.

#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

Affected Products

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

Products

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
Article Properties
Article Number: 000193585
Article Type: How To
Last Modified: 05 Sept 2025
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.