Typeperf

From Sterbal's Sundry Studies

Examples[edit]

To display processor and memory counters, type:

  • typeperf "\Memory\Available bytes" "\processor(_total)\% processor time"

To display Explorer process counters every three seconds in a CSV-output file format, type:

  • typeperf "\Process(Explorer)\Thread Count" -si 3 -o typeperf.csv

To display 50 samples of RAS counters on computer Server_name, type:

  • typeperf "\RAS port(LPT1)\Bytes Transmitted" -sc 50 -s Server_name

To display counter values for 50 samples of the counters listed in the file input.txt, at sample intervals of 120 seconds, type:

  • typeperf -cf input.txt -si 120 -sc 50 -f TSV -o domain2.tsv

To query installed counters with instances, type the following command. Be aware that the -qx parameter will return a far greater number of performance counters than the -q parameter.

  • typeperf -qx

To query physical disk counters without instances on computer Server5 and write them to a file called diskctrs.txt, type:

  • typeperf -q \\Server5\PhysicalDisk -o diskctrs.txt

Show available memory and processor usage

  • typeperf "\Memory\Available bytes" "\processor(_total)\% processor time"