Date formats in the following examples are for US local time only.
To create daily counter collection queries with begin and end times, repeat collections, version control numbers, counter paths and sample intervals, type:
Logman create counter daily_perf_log -b 7/27/2000 13:00:00 -e 7/27/2000 15:00:00 -r -v mmddhhmm -c "\processor(_Total)\% processor Time" "\Memory\Available bytes" -si 00:15 -o "c:\perflogs\daily_log"
To create daily collection queries with begin and end times, repeat collections, output file collections, version control numbers, counter paths and sample intervals, type:
Logman create counter daily_perf_log -b 7/27/2000 13:00:00 -e 7/27/2000 15:00:00 -r -o "c:\perflogs\daily_log" -v mmddhhmm -c "\processor(_Total)\% processor Time" "\Memory\Available bytes" -si 00:15
To create daily collection queries using the config file, instead of the command line file, type:
Logman -config file daily_perf.txt
To create daily trace collection queries with begin and end times, repeat collections, version control numbers, provider names, input and output file collections, type:
Logman create trace daily_kernel_trace_log -b 7/27/2000 13:00:00 -e 7/27/2000 15:00:00 -r -v mmddhhmm -p "Windows Kernel Trace" 0xFFFFFFFF -rf 100 -o "c:\perflogs\daily_nt_trace"
To create daily trace collection queries with begin and end times, repeat collections, version control numbers, Guid and logger names, input and output file collections, type:
Logman create trace daily_lsass_trace_log -b 7/27/2000 13:00:00 -e 7/27/2000 15:00:00 -r -v mmddhhmm -p "Local Security Authority(LSA)" 0x00000001 -rf 30:00 -o " c:\perflogs\daily_lsass_trace"
To create daily counter collection queries with begin and end times, repeat collections, version control numbers, counter paths, sample intervals, SQL formats and output file collections, type:
Logman create counter daily_perf_log -b 7/27/2000 13:00:00 -e 7/27/2000 15:00:00 -r -v mmddhhmm -c "\processor(_Total)\% processor Time" "\Memory\Available bytes" -si 00:15 -f sql -o perfdb!daily_log
To start daily collections with sample intervals, account names and passwords, type:
Logman start daily_perf_log -s \\%computer_name% -u admin "adminpassword"
To start manual data collections, type:
Logman start daily_perf_log
To stop data collections, type:
Logman stop daily_perf_log
To delete data collections, type:
Logman delete daily_perf_log
To display the status of collection queries, type the following commands:
Logman query
Logman query daily_perf_log