Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

198 lines
7.5 KiB

  1. <!doctype html public "-//W3C//DTD HTML 4.0 Draft//EN">
  2. <html xmlns:v="urn:schemas-microsoft-com:vml"
  3. xmlns:o="urn:schemas-microsoft-com:office:office"
  4. xmlns:w="urn:schemas-microsoft-com:office:word"
  5. xmlns="http://www.w3.org/TR/REC-html40">
  6. <head>
  7. <meta http-equiv=Content-Type content="text/html; charset=windows-1251">
  8. <meta name=ProgId content=Word.Document>
  9. <meta name=Generator content="Microsoft Word 9">
  10. <meta name=Originator content="Microsoft Word 9">
  11. <link rel=File-List href="./PerfMon_files/filelist.xml">
  12. <title>WMI SDK Sample - PerfMon</title>
  13. <!--[if gte mso 9]><xml>
  14. <o:DocumentProperties>
  15. <o:Author>Michael Maston</o:Author>
  16. <o:Template>Normal</o:Template>
  17. <o:LastAuthor>Michael Maston</o:LastAuthor>
  18. <o:Revision>6</o:Revision>
  19. <o:TotalTime>183</o:TotalTime>
  20. <o:LastPrinted>1999-07-15T22:39:00Z</o:LastPrinted>
  21. <o:Created>1999-06-11T21:06:00Z</o:Created>
  22. <o:LastSaved>1999-07-15T22:49:00Z</o:LastSaved>
  23. <o:Pages>1</o:Pages>
  24. <o:Words>147</o:Words>
  25. <o:Characters>841</o:Characters>
  26. <o:Company>Microsoft</o:Company>
  27. <o:Lines>7</o:Lines>
  28. <o:Paragraphs>1</o:Paragraphs>
  29. <o:CharactersWithSpaces>1032</o:CharactersWithSpaces>
  30. <o:Version>9.2720</o:Version>
  31. </o:DocumentProperties>
  32. </xml><![endif]-->
  33. <style>
  34. <!--
  35. /* Font Definitions */
  36. @font-face
  37. {font-family:"MS Mincho";
  38. panose-1:0 0 0 0 0 0 0 0 0 0;
  39. mso-font-alt:"MS Mincho";
  40. mso-font-charset:128;
  41. mso-generic-font-family:roman;
  42. mso-font-format:other;
  43. mso-font-pitch:fixed;
  44. mso-font-signature:1 134676480 16 0 131072 0;}
  45. @font-face
  46. {font-family:Verdana;
  47. panose-1:2 11 6 4 3 5 4 4 2 4;
  48. mso-font-charset:0;
  49. mso-generic-font-family:swiss;
  50. mso-font-pitch:variable;
  51. mso-font-signature:536871559 0 0 0 415 0;}
  52. @font-face
  53. {font-family:"\@MS Mincho";
  54. mso-font-charset:128;
  55. mso-generic-font-family:modern;
  56. mso-font-pitch:fixed;
  57. mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
  58. /* Style Definitions */
  59. p.MsoNormal, li.MsoNormal, div.MsoNormal
  60. {mso-style-parent:"";
  61. margin:0in;
  62. margin-bottom:.0001pt;
  63. mso-pagination:widow-orphan;
  64. font-size:12.0pt;
  65. font-family:"Times New Roman";
  66. mso-fareast-font-family:"Times New Roman";
  67. color:black;}
  68. a:link, span.MsoHyperlink
  69. {color:blue;
  70. text-decoration:underline;
  71. text-underline:single;}
  72. a:visited, span.MsoHyperlinkFollowed
  73. {color:blue;
  74. text-decoration:underline;
  75. text-underline:single;}
  76. p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
  77. {margin:0in;
  78. margin-bottom:.0001pt;
  79. mso-pagination:widow-orphan;
  80. font-size:10.0pt;
  81. font-family:"Courier New";
  82. mso-fareast-font-family:"Times New Roman";}
  83. @page Section1
  84. {size:8.5in 11.0in;
  85. margin:1.0in 1.25in 1.0in 1.25in;
  86. mso-header-margin:.5in;
  87. mso-footer-margin:.5in;
  88. mso-paper-source:0;}
  89. div.Section1
  90. {page:Section1;}
  91. /* List Definitions */
  92. @list l0
  93. {mso-list-id:2085059825;
  94. mso-list-type:hybrid;
  95. mso-list-template-ids:-224211296 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
  96. @list l0:level2
  97. {mso-level-number-format:alpha-lower;
  98. mso-level-tab-stop:1.0in;
  99. mso-level-number-position:left;
  100. text-indent:-.25in;}
  101. ol
  102. {margin-bottom:0in;}
  103. ul
  104. {margin-bottom:0in;}
  105. -->
  106. </style>
  107. <!--[if gte mso 9]><xml>
  108. <o:shapedefaults v:ext="edit" spidmax="1027"/>
  109. </xml><![endif]--><!--[if gte mso 9]><xml>
  110. <o:shapelayout v:ext="edit">
  111. <o:idmap v:ext="edit" data="1"/>
  112. </o:shapelayout></xml><![endif]-->
  113. <meta name=MS-HAID content=VJsamples>
  114. </head>
  115. <body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  116. <div class=Section1>
  117. <table border=0 cellpadding=0 width="100%" style='width:100.0%;mso-cellspacing:
  118. 1.5pt;mso-padding-alt:0in 0in 0in 0in'>
  119. <tr>
  120. <td width=160 style='width:120.0pt;background:#330099;padding:.75pt .75pt .75pt .75pt'>
  121. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana;
  122. color:white'>&nbsp;<nobr><b>Windows Management Instrumentation SDK Sample</b></span>
  123. <o:p></o:p></p>
  124. </td>
  125. </tr>
  126. </table>
  127. <p class=MsoPlainText><br>
  128. <strong><span style='font-size:13.5pt;font-family:Verdana'>PerfMon</span></strong><br>
  129. <br>
  130. <span style='font-family:Verdana;mso-fareast-font-family:"MS Mincho";
  131. mso-bidi-font-family:"Times New Roman"'>This sample illustrates how to retrieve
  132. PerfMon counter values from WMI.<span style="mso-spacerun: yes"></span>Note
  133. that the accompanying MOF (perfmon.mof) must be compiled and loaded for this
  134. sample to run correctly.<span style="mso-spacerun: yes"></span>The MOF file
  135. contains class definitions of the performance counters to be read by the
  136. sample.<o:p></o:p></span></p>
  137. <p class=MsoPlainText><span style='font-family:Verdana;mso-fareast-font-family:
  138. "MS Mincho";mso-bidi-font-family:"Times New Roman"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
  139. <p class=MsoPlainText><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt;
  140. font-family:Verdana'>Compiling the PerfMon MOF<o:p></o:p></span></p>
  141. <p class=MsoPlainText>&nbsp;</p>
  142. <p class=MsoPlainText><span style='font-family:Verdana'>The PerfMon MOF can be
  143. compiled by doing the following:<o:p></o:p></span></p>
  144. <p class=MsoPlainText><span style='font-family:Verdana'>&nbsp;<o:p></o:p></span></p>
  145. <p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo2;
  146. tab-stops:list .5in'><![if !supportLists]><span style='font-family:Verdana'>1.<span
  147. style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]><span
  148. style='font-family:Verdana'>At the command prompt, change directory to the
  149. installation drive and directory of the PerfMon sample (e.g., D:\&gt;Program
  150. Files\WMI\samples\Scripting\WSH\VBScript\PerfMon):<o:p></o:p></span></p>
  151. <p class=MsoPlainText style='margin-left:.5in'><span style='font-family:Verdana'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
  152. <p class=MsoPlainText style='margin-left:.5in'><b><span style='font-family:
  153. Verdana'>CD �\Program Files\WMI\samples\Scripting\WSH\VBScript\PerfMon�<o:p></o:p></span></b></p>
  154. <p class=MsoPlainText style='margin-left:.5in'><b><span style='font-family:
  155. Verdana'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></b></p>
  156. <p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo2;
  157. tab-stops:list .5in'><![if !supportLists]><span style='font-family:Verdana'>2.<span
  158. style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]><span
  159. style='font-family:Verdana'>Once in the installation directory, compile the
  160. PerfMon MOF using the WMI MOF compiler, MOFCOMP:<o:p></o:p></span></p>
  161. <p class=MsoPlainText><span style='font-family:Verdana'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
  162. <p class=MsoPlainText style='margin-left:.25in;text-indent:.25in'><b><span
  163. style='font-family:Verdana'>MOFCOMP perfmon.mof<o:p></o:p></span></b></p>
  164. <p class=MsoPlainText><span style='font-family:Verdana'>&nbsp;<o:p></o:p></span></p>
  165. <p class=MsoPlainText><span style='font-family:Verdana'>Once the MOF is
  166. compiled, the PerfMon script may be run and the results of the performance
  167. counter query will be displayed.<o:p></o:p></span></p>
  168. <p class=MsoPlainText><span style='font-family:Verdana'>&nbsp;<o:p></o:p></span></p>
  169. <p class=MsoNormal style='tab-stops:list .5in' l0 level1 lfo2 list .5in><span
  170. style='font-family:Arial'><a href="http://www.microsoft.com/misc/CPYRIGHT.HTM"><b>
  171. 1998-1999 Microsoft Corporation. All rights reserved.</b></a></span></p>
  172. </div>
  173. </body>
  174. </html>