?
Solved

Diskperf -y flag not sticking?

Posted on 2005-03-09
5
Medium Priority
?
703 Views
Last Modified: 2008-03-17
We use perfmon to monitor diskspace on various servers on our lan, now in order to remotely see disk counters (logical disk) you need to run the command "diskperf -y" from a command line.  However I'm seeing cases where on Windows 2000 server this setting is not permanent and we have to reset it every couple of days. Has anyone else seen this problem or have a solution. The only thing I can think is that we only run SP3 (for a variety o depressing reasons) and at the present time there is no chance of getting the upgrade to SP4 brought forward.
Cheers
0
Comment
Question by:NacMacFeegle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13494831
Are all the computers part of domain controller? if yes then create a batch file > process this batch file using Group Policy so it will keep sticking.
0
 
LVL 4

Author Comment

by:NacMacFeegle
ID: 13494856
We could do this but unfortunately a lot of these servers are missin critical and get reboots only once a week or less often. As the flag ony applies at boot up this means that even if we apply it with a GPO then it will not actually switch the diskperf counters back on until the server gets a reboot. I'll give it a go tho' Cheers - any one else got any ideas or seen it before?
0
 
LVL 35

Accepted Solution

by:
Nirmal Sharma earned 1500 total points
ID: 13494900
>>>However I'm seeing cases where on Windows 2000 server this setting is not permanent and we have to reset it every couple of days.

You can create a batch file and allow this batch file to run when Windows Server computers are started from the following location in registry: -

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

Or

from StartUp in Start Menu.
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13494957
Yes, It requires a reboot to activate the counter. I am not sure when the counters are initialized at the time of rebooting but you can do one thing you can manually kill explorer.exe and then start it again from Task Manager > New Task. If it is initialized by checking the registry entry then you don't need to reboot because when you kill explorer.exe and run it again it will re-read the registry...if it is initialized by the "Performance Logs and Alerts" service then you need to set service type = "Automatic"..so that when you run the Performance Tool the service will be started automatically and when the service is started it will initilize all the settings or it will load all the counters.

Give it a try and let me know.

Thanks
SystmProg
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 14120065
Thanks!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question