logman 更新跟踪

更新现有事件跟踪数据收集器的属性。

Syntax

logman update trace <[-n] <name>> [options]

Parameters

Parameter Description
-s <computer name> 在指定的远程计算机上执行此命令。
-配置 <value> 指定包含命令选项的设置文件。
-ets 将命令直接发送到事件跟踪会话,无需进行保存或计划。
[-n] <name> 目标对象的名称。
-f <bin|bincirc> 指定数据收集器的日志格式。
-[-]u <user [password]> 指定运行时采用的用户。 为密码输入 * 会生成密码提示。 在密码提示符处键入密码时,不会显示密码。
-米 <[start] [stop] [[start] [stop] [...]]> 更改为手动启动或停止,而不是采用计划的开始或结束时间。
-射频 <[[hh:]mm:]ss> 以指定的时长运行数据收集器。
-b <M/d/yyyy h:mm:ss[AM|PM]> 在指定的时间开始收集数据。
-e <M/d/yyyy h:mm:ss[AM|PM]> 在指定的时间结束数据收集。
-o <path|dsn!log> 指定 SQL 数据库中的输出日志文件或 DSN 和日志集名称。
-[-]r 每天在指定的开始和结束时间重复数据收集器。
-[-]a 追加到现有的日志文件。
-[-]ow 覆盖现有的日志文件。
-[-]v <nnnnnn|mmddhhmm> 将文件版本控制信息附加到日志文件名称的末尾。
-[-]rc <task> 每次关闭日志时运行指定的命令。
-[-]max <value> SQL 日志的最大日志文件大小(以 MB 为单位)或最大记录数。
-[-]cnf <[[hh:]mm:]ss> 指定了时间时,会在指定的时间过后创建新文件。 未指定时间时,会在超出最大大小时创建新文件。
-y 对所有问题都回答“是”,无需提示。
-ct <perf|system|cycle> 指定事件跟踪会话时钟类型。
-在 <logger_name> 指定事件跟踪会话的记录器名称。
-英尺 <[[hh:]mm:]ss> 指定事件跟踪会话刷新计时器。
-[-]p <provider [flags [level]]> 指定要启用的单个事件跟踪提供程序。
-pf <filename> 指定要启用的列出多个事件跟踪提供程序的文件。 该文件应该是每行包含一个提供程序的文本文件。
-[-]rt 以实时模式运行事件跟踪会话。
-[-]ul 以用户身份运行事件跟踪会话。
-BS <value> 指定事件跟踪会话缓冲区大小(以 kb 为单位)。
-铌 <min max> 指定事件跟踪会话缓冲区的数量。
-模式 <globalsequence|localsequence|pagedmemory> 指定事件跟踪会话记录器模式,包括:
  • Globalsequence - Specifies that the event tracer add a sequence number to every event it receives irrespective of which trace session received the event.
  • Localsequence - Specifies that the event tracer add sequence numbers for events received at a specific trace session. 使用此选项时,重复的序列号可存在所有会话之中,但在每个跟踪会话中都是唯一的。
  • Pagedmemory - Specifies that the event tracer use paged memory rather than the default non-paged memory pool for its internal buffer allocations.
/? 显示上下文相关帮助。

Remarks

  • 在列出了 [-] 的地方,添加一个额外的连字符 (-) 会否定该选项。

Examples

To update an existing event trace data collector called trace_log, changing the maximum log size to 10 MB, updating the log file format to CSV, and appending file versioning in the format mmddhhmm, type:

logman update trace trace_log -max 10 -f csv -v mmddhhmm