WMI计数器的命名规范

时间:2011-03-09 21:00:09

标签: naming-conventions wmi standards specifications

是否有解析WMI性能计数器名称的规范?标准名称看起来像'\ Xxxx \ Yy yy \ Zzzz zzz',但是我们看到一些自定义名称看起来像'\ Aaaa aaa \ Bb bb BLAH(bbb \ bbbb)\ Ccc ccc ccc',即尾随空格,以及带嵌入式's'的嵌入式括号元素。是否有描述这些名称中允许的内容的规范?

以下是一些典型的标准计数器名称:

\Process(Idle)\% Processor Time
\Process(System)\% Processor Time
\LogicalDisk(HarddiskVolume1)\Avg. Disk Bytes/Transfer
\LogicalDisk(C:)\Avg. Disk Bytes/Transfer
\LogicalDisk(_Total)\Avg. Disk Bytes/Transfer
\LogicalDisk(HarddiskVolume1)\Avg. Disk Bytes/Read
\LogicalDisk(C:)\Avg. Disk Bytes/Read
\LogicalDisk(_Total)\Avg. Disk Bytes/Read
\LogicalDisk(HarddiskVolume1)\Avg. Disk Bytes/Write
\Thread(w3wp/7)\Priority Current
\Thread(w3wp/8)\Priority Current
\Thread(explorer/7)\Priority Current
\MSMQ Outgoing HTTP Session(*)\Outgoing HTTP Bytes
\MSMQ Queue(os:zyxwvut1dv\private$\profilestats_submissions_dev_current_1)\Messages in Queue
\Per Processor Network Interface Card Activity(1, Intel(R) PRO-1000 MT Network Connection)\Received Packets/sec
\Netlogon(\\ZY2XWVUT1.app5000.online)\Semaphore Waiters

以下是一些自定义计数器名称:

\Customer App (current) DEV(netmix\auth.asmx\authtkts)\ErrorCode.InvalidState Count
\Customer App (current) DEV(lorem\ipsem.asmx\rdunlcks)\ErrorCode.InvalidState Count
\Customer App (current) DEV(netmix\legal.asmx\getvalidverid)\ErrorCode.OutOfRange Count
\Customer App (current) DEV(lorem\acq.asmx\submit)\ErrorCode.OutOfRange Count
\Customer App (current) DEV(netmix\milestones.asmx\getmilestones)\ErrorCode.OutOfRange Count
\Customer App (current) AUTH(*)\ErrorCode.UnknownError Count

注意:只寻找与上面给定字符串匹配的正则表达式。我想引用定义此内容的文档规范。

1 个答案:

答案 0 :(得分:0)

名称的格式为\ A \ B

  1. A限制为256个字符
  2. B的限制为1024个字符
  3. 似乎没有任何特定的“无效”字符。
  4. 引用(查看每个的'name'小节):