Relog



ܼܼ־Ϊʽ磬text-TSVƱָı text-CSV ڶŷָıbinary-BIN  SQL


﷨



relog [FileName [filename ...]] [-a] [-c  Path [path ...]] [-cf FileName] [-f  {bin|csv|tsv|SQL}] [-t value] [-o {output file | DSN!counter_log}] [-b M/d/yyyy [[hh:]mm:]ss] [-e M/d/yyyy [[hh:]mm:]ss] [-config FileName] [-q]






FileName [filename ...]

ָܼ־·ָļ

-a 

ļǸǡѡĬΪӵ SQL ʽ

-c Path [path ...]

ָ¼ܼ·Ҫָ·ÿոָǣŽ·磬"CounterPath1 CounterPath2"

-cfFileName 

ָгҪ¼¼ļеܼıļ·ʹôѡļг·ÿгһ·Ĭ¼¼ԭʼ־ļем

-f {bin|csv|tsv|SQL}

ָļʽ·ĬϸʽΪ bin SQL ݿ⣬ļָ DSN!counter_logͨʹ ODBC  DSN ݿϵͳƣָݿλá

-t value

 "n" ָ n ݵ¼¼ļ֮ڡĬÿݵ㡣

-o {output file | DSN!counter_log}

ָҪдļ SQL ݿ·

-b M/d/yyyy hh[:mm[:ss]]

ָļƵһ¼Ŀʼʱ䡣ȷʽָںʱM/d/yyyy hh:mm:ss

-e M/d/yyyy hh[:mm[:ss]]

ָļһ¼Ľʱ䡣ȷĸʽָںʱ M/d/yyyy hh:mm:ss

-config filename

ָвļ·

-q

ʾļָ־ļܼʱ䷶Χ

/?
ʾʾ


ע



·ʽ

·ͨøʽ£[\\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



ڸڵָͨ򽫷ָָͼƥ

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

ڼָͨ򽫷ָм

ֲַּ֧ƥ䡣

ļ

ļг־һܼıļ־ [\\Computer \ object [instance] \ counter] ʽ -q иļơÿгһ·


Ƽ

ִʱRelog ļеÿ¼ָļͬʱҪתʽļͨ·


ļӼ

ʹ -t ָÿ n ¼ļ뵽ļ֮СĬ£ݴÿ¼¼¼


 -b  -e ־ļ

ָ־ʼʱ (-b) ֮ǰļ¼ӶΪҪʽֵļֵļṩݡļļʱСڽʱ (-e) ¼


ʹ -config ѡ

  -config  ѡһʹõļӦ¸ʽ

[command_option}

value
 command_option ѡȻ value ֵָ磺

[o]

output.txt

[f]

csv

[t]

5




йν Relog ϲ Windows  (WMI) űеϸϢ Microsoft Windows Դվϡű־ͼӡ(http://www.microsoft.com/)









ҪֵΪ 30 Ĺ̶и־г·ļ͸ʽ


Relog c:\perflogs\daily_trace_log.blg -cf counter_file.txt -o c:\perflogs\reduced_log.csv -t 30 -f csv


ҪֵΪ 30 Ĺ̶и־г·ļ


Relog c:\perflogs\daily_trace_log.blg  -cf counter_file.txt -o c:\perflogs\reduced_log.blg -t 30

XOX




