logman start and logman stoplogman start and logman stop

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Logman start命令启动一个数据收集器,并将开始时间设置为 "手动"。The logman start command starts a data collector and sets the begin time to manual. Logman stop命令停止数据收集器集,并将结束时间设置为 "手动"。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>-s <computer name> 在指定的远程计算机上执行命令。Perform the command on the specified remote computer.
-config <value>-config <value> 指定包含命令选项的设置文件。Specifies the settings file containing command options.
[-n] <name>[-n] <name> 指定目标对象的名称。Specifies the name of the target object.
-ets-ets 直接将命令发送到事件跟踪会话,而不保存或计划。Sends commands to Event Trace Sessions directly, without saving or scheduling.
-as-as 异步执行请求的操作。Performs the requested operation asynchronously.
-?-? 显示区分上下文的帮助。Displays context-sensitive help.

示例Examples

若要启动数据收集器 perf_log,请在 "远程计算机" server_1上键入:To start the data collector perf_log, on the remote computer server_1, type:

logman start perf_log -s server_1

其他参考Additional References