Performance of Any application we can observe using Performance counters on windows server. These counters will install while installing the application on the server. If we install active Directory on the server it will install performance counters too.
Few cases we did not find the perf. counters on the servers. Most of the cases the issue withe enable or disable counters registry in registry keys. We have that option where we can enable/Disable performance counters in the registry keys. Registry path for the AD is as below:
HKLM\System\CurrentControlSet\Services\NTDS: in this registry we have one sub registry "DisablePerformanceCounters" key to enable or disable counters. If the value is set to 0 that means counters were enabled. We need to make sure that the value should be Zero to enable counters.
Once we done with the above registry we need reload the counters to Performance counters using the command "lodctr.exe /r" in Windows\System32 folder. Once we done with the loading counters we can see the counters in the performance counters.
To transfer these counters to WMI repository we need to use "WMIADAP.EXE /F" command. This ADAP (AutoDiscovery/AutoPurge) process will load the counters to WMI repository forcefully. Once we done with the above process we must restart the WMI service on the server. If you fail to restart the WMI service go for reboot and check.
Solution 2: If you are unable to find the above registry on the server we can export from any other Domain controller and import on the target server. These counters will differ based on the OS version of the server. We need to Import windows 2003 server AD registry keys to Windows 2003 server only. same for 2008 servers also.
Once you done with the above steps you will get missed performance counters on the server.
Few cases we did not find the perf. counters on the servers. Most of the cases the issue withe enable or disable counters registry in registry keys. We have that option where we can enable/Disable performance counters in the registry keys. Registry path for the AD is as below:
HKLM\System\CurrentControlSet\Services\NTDS: in this registry we have one sub registry "DisablePerformanceCounters" key to enable or disable counters. If the value is set to 0 that means counters were enabled. We need to make sure that the value should be Zero to enable counters.
Once we done with the above registry we need reload the counters to Performance counters using the command "lodctr.exe /r" in Windows\System32 folder. Once we done with the loading counters we can see the counters in the performance counters.
To transfer these counters to WMI repository we need to use "WMIADAP.EXE /F" command. This ADAP (AutoDiscovery/AutoPurge) process will load the counters to WMI repository forcefully. Once we done with the above process we must restart the WMI service on the server. If you fail to restart the WMI service go for reboot and check.
Solution 2: If you are unable to find the above registry on the server we can export from any other Domain controller and import on the target server. These counters will differ based on the OS version of the server. We need to Import windows 2003 server AD registry keys to Windows 2003 server only. same for 2008 servers also.
Once you done with the above steps you will get missed performance counters on the server.
No comments:
Post a Comment