logman start 和 logman stop

The logman start command starts a data collector and sets the begin time to manual. The logman stop command stops a Data Collector Set and sets the end time to manual.

Syntax

logman start <[-n] <name>> [options]
logman stop <[-n] <name>> [options]

Parameters

Parameter Description
-s <computer name> 在指定的远程计算机上执行此命令。
-配置 <value> 指定包含命令选项的设置文件。
[-n] <name> 指定目标对象的名称。
-ets 将命令直接发送到事件跟踪会话,而不进行保存或计划。
-as 异步执行请求的操作。
-? 显示上下文相关帮助。

Examples

To start the data collector perf_log, on the remote computer server_1, type:

logman start perf_log -s server_1