Welcome to TechNet Blogs Sign in | Join | Help

Escape From The Troubles

한국 마이크로소프트 플랫폼팀 블로그
Windows Vista/Server2008/ Server2008R2 환경에서 성능 카운터를 Rebuild 하는 방법

 

가끔 성능 카운터의 일부 또는 전체가 숫자로 보이거나 카운터들이 보이지 않거나 또는 아래와 같은 이벤트 로그가

기록될 경우가 있습니다.

 

이벤트 형식 : 오류

이벤트 원본 : Perflib

이벤트 ID : 1008 또는 다른 ID

 

Windows 2000/XP/2003 환경에서는 Base OS의 성능 카운터들을 Rebuild 하기 위해서는 아래 문서를 진행해야 했습니다.

 

How to manually rebuild Performance Counter Library values
http://support.microsoft.com/?id=300956

 

또는, exctrlst.exe 툴을 사용해서 카운터들을 Enable/Disable 할 수 있었습니다.

 

Windows 2000 Resource Kit Tool : Extensible Performance Counter List (exctrlst.exe)
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7ff99683-b7ec-4da6-92ab-793193604ba4

 

Windows Vista / Server2008 또는 그 이후 버전에서는 이러한 작업들을 아주 쉬운 Command 를 사용하여 수행할 수 있습니다.

 

1. 관리자 권한으로 CMD 를 실행합니다.

 

2. 도스 창에서 “C:\Windows\system32” 디렉토리로 이동합니다.

 

3. 아래 명령을 수행하여Rebuild 작업을 수행하기 전에 성능 카운터들을Backup_Original.INI로 백업 후 진행합니다.

 

   C:\Windows\System32> LodCtr.exe /S:Backup_Original.INI

 

   C:\Windows\System32> LodCtr.exe /R:PerfStringBackup.INI

 

4. 성능 로그 툴을 실행하신 후 적절하게 카운터들이 보이는지 확인합니다.

 

 

참고: LodCtr.exe 툴의 기타 스위치

C:\>lodctr.exe /?

LODCTR
    Updates registry values related to performance counters.

Usage:
    LODCTR <INI-FileName>
        INI-FileName is the name of the initialization file that contains the counter name
           definitions and explain text for an extensible counter DLL.

    LODCTR /S:<Backup-FileName>
        save the current perf registry strings and info to <Backup-FileName>

    LODCTR /R:<Backup-FileName>
        restore the perf registry strings and info using <Backup-FileName>

    LODCTR /R
        rebuild the perf registry strings and info from scratch based on the current
            registry settings and backup INI files.

    LODCTR /T:<Service-Name>
        set the performance counter service as trusted.

    LODCTR /E:<Service-Name>
        enable the performance counter service.

    LODCTR /D:<Service-Name>
        disable the performance counter service.

    LODCTR /Q

    LODCTR /Q:<Service-Name>
        query the performance counter service information, either query all or specified one.

    LODCTR /M:<Counter-Manifest>
        install Windows Vista performance counter provider definition XML file to system repository.

 

Posted: Wednesday, October 07, 2009 6:43 PM by escapetrouble

Comments

No Comments

Anonymous comments are disabled
Page view tracker