Typeperf



ܼдڻָ֧ùܵ־ļʽСҪֹͣ Typeperf밴 CTRL+C


﷨



Typeperf [Path [path ...]] [-cf FileName]  [-f {csv|tsv|bin}] [-si interval] [-o  FileName] [-q [object]] [-qx [object]] [-sc  samples] [-config FileName] [-s  computer_name]





-c {Path [path ...] | -cf FileName}

ָ¼ܼ·Ҫг·ÿոÿ·

-cf FileName

ָҪӵļ·ļƣÿһļ

-f {csv|tsv|bin}

ָļʽļʽ csvԶŷָtsvƱָԼ binƣĬϸʽΪ csv

-si interval [mm:]ss

ָ֮ʱ [mm:]ss ʽĬֵΪһӡ

-o FileName

ָļ·ĬΪ stdout

-q [object]

ʾͲѯʵĿüʾһļöơ

-qx [object]

ʾͲѯʵпüʾһļöơ

-sc samples

ָҪռķĬΪһֱֱ CTRL+C ʱΪֹ

-config FileName

ָвļ·

-s computer_name

ڼ·δָָҪӵϵͳ

/?
ʾʾ





ע


 ·ʽ

·ͨøʽ£[\\Computer]\object[parent/instance#index]\counter] where:

ڵ㡢͸ʽļЧͨммڵ㡢

Ըݼ·磬LogicalDisk  indexԱṩ #index ͨˣʹ¸ʽ

\LogicalDisk(*/*#*)\*

ԶԣProcess Ҫ indexˣʹ¸ʽ

\Process(*)\ID Process

øʽб£

\\machine\object(parent/instance#index)\counter
\\machine\object(parent/instance)\counter
\\machine\object(instance#index)\counter
\\machine\object(instance)\counter
\\machine\object\counter
\object(parent/instance#index)\counter
\object(parent/instance)\counter 
\object(instance#index)\counter
\object(instance)\counter
\object\counter



ڸڵָͨ򽫷ָָͼƥ

ָͨ򽫷ָ͸ڵеָӦͨƥ䣩

ڼָͨ򽫷ָм

ֲַּ֧ƥ䡣


 ѯʽ

ڼ·ѯʹô˸ʽTypeperf [{-q | -qx [\\Computer\] [object] [-o outputfile}]

ѯʹУ

Typeperf [\\Computer]\object[instance]\counter]

Typeperf -cf input file

 ʹ -config ѡ

 -config ѡһʹõļӦ¸ʽ

[command_option]

value  command_option ѡȻ value ֵָ磺

-c

\Windows\mypath

[-o]

report.csv

[-s]

mysystem




йν Typeperf ϲ Windows  (WMI) űϸϢ Microsoft Windows Դվϵġű־ͼӡ(http://www.microsoft.com/)








Ҫʾڴ룺


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


Ҫ CSV ʽÿʾһ Explorer ̣룺


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


Ҫڼ Server_name ʾ 50  RAS ķ룺


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


Ҫ 120 ķʾʾ input.txt ļг 50 ļֵ룺


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


ҪѯʵѰװע⣺-qx ر -q ܼܶĿ


typeperf -qx


Ҫڼ Server5 ϲѯʵ̼дΪ diskctrs.txt ļУ룺


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

XOX






