I'd like to create a settings file for my logman command. I expect to have lots of perfmon counters.
Is there any easy way to get all the perfmon counters' exact text anywhere?
The only thing I thought of was to create a Perfmon Counter Log through the GUI and then export the list of selected counters–but I don't see an export option! I guess I could manually copy what I see on the screen, but that seems inefficient. I'm going to be dealing with tens of counters.
Maybe there is a list somewhere? That'd be easier to copy and paste from.
Best Answer
An easy way to achieve this, is by using the
typeperf
command.For example, to get an complete list of all available Windows PerfMon counters is by typing the following command from a command prompt:
typeperf -q
Create a file
counters.txt
with all the counters you would like to monitor, (1 per line)send output to a logfile. (
typeperf -cf counters.txt -si 5 -sc 50 -f TSV -o domain2.tsv
)Good luck! Henk