<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Command or Scripts needed in Windows Server 2003</title>
    <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237643#M7403</link>
    <description>Hi Suresh,&lt;BR /&gt;&lt;BR /&gt;Since you need to do this in a number of servers.&lt;BR /&gt;Once you're done setting this up thecounter log at one single server, then you can just Save Settings as an either .htm or .html file.&lt;BR /&gt;Then, you can place the (htm/html) file at a network share available to other servers and import the file so the local server can get all the same settings from there.  Just make sure you modify the server name at the .htm/html file before you actually start the counter log.&lt;BR /&gt;&lt;BR /&gt;You can even dump the output to a .blg file so you can additionally view counter usage charts.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Edgar.</description>
    <pubDate>Mon, 03 May 2010 07:24:30 GMT</pubDate>
    <dc:creator>Edgar Zapata</dc:creator>
    <dc:date>2010-05-03T07:24:30Z</dc:date>
    <item>
      <title>Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237641#M7401</link>
      <description>I want to find CPU,Disk,Memory usage in servers in daily basis and redirect that output to an xls/csv file .Can you please give me the command to find these utilization or script to find the utilization and redirect that output to excel sheet.</description>
      <pubDate>Fri, 30 Apr 2010 06:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237641#M7401</guid>
      <dc:creator>cool...</dc:creator>
      <dc:date>2010-04-30T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237642#M7402</link>
      <description>You can do this through System Monitor.&lt;BR /&gt;Start - run - perfmon.msc&lt;BR /&gt;counter logs - New Log Settings - &lt;BR /&gt;Add Counters (Pick the objects or counters you want to monitor).&lt;BR /&gt;At the Log Files tab, pick Text File (Comma delimited)&lt;BR /&gt;Add any settings you may need and you're ready to go.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Fri, 30 Apr 2010 09:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237642#M7402</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2010-04-30T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237643#M7403</link>
      <description>Hi Suresh,&lt;BR /&gt;&lt;BR /&gt;Since you need to do this in a number of servers.&lt;BR /&gt;Once you're done setting this up thecounter log at one single server, then you can just Save Settings as an either .htm or .html file.&lt;BR /&gt;Then, you can place the (htm/html) file at a network share available to other servers and import the file so the local server can get all the same settings from there.  Just make sure you modify the server name at the .htm/html file before you actually start the counter log.&lt;BR /&gt;&lt;BR /&gt;You can even dump the output to a .blg file so you can additionally view counter usage charts.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Edgar.</description>
      <pubDate>Mon, 03 May 2010 07:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237643#M7403</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2010-05-03T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237644#M7404</link>
      <description>Thanks all for your help ,I have got a script in vbs format which gave all the required outputs</description>
      <pubDate>Tue, 04 May 2010 07:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237644#M7404</guid>
      <dc:creator>cool...</dc:creator>
      <dc:date>2010-05-04T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237645#M7405</link>
      <description>Could you please provide the script. I'm also looking for that &amp;amp; working hard to getting the desire output.....</description>
      <pubDate>Tue, 08 Jun 2010 15:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237645#M7405</guid>
      <dc:creator>vijayvz</dc:creator>
      <dc:date>2010-06-08T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Command or Scripts needed</title>
      <link>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237646#M7406</link>
      <description>Option Explicit &lt;BR /&gt;  &lt;BR /&gt;Dim oWsh, oWshSysEnv, objFSO, objWMIService &lt;BR /&gt;Dim oDrives, oDrive, objOutFile, colItems, objItem &lt;BR /&gt;Dim strLineDate, strLineTime, strLineProcessorTime, strLineDriveSpace, strLinePercentCommittedBytesInUse &lt;BR /&gt;  &lt;BR /&gt;Set oWsh = WScript.CreateObject("WScript.Shell") &lt;BR /&gt;Set oWshSysEnv = oWsh.Environment("PROCESS") &lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject") &lt;BR /&gt;Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2") &lt;BR /&gt;  &lt;BR /&gt;strLineDate = Date() &lt;BR /&gt;strLineTime = Time() &lt;BR /&gt;  &lt;BR /&gt;'Gets PROCESSOR Usage &lt;BR /&gt;Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PerfFormattedData_PerfOS_Processor WHERE Name = '_Total'") &lt;BR /&gt;For Each objItem In colItems    &lt;BR /&gt; strLineProcessorTime = strLineProcessorTime &amp;amp; " " &amp;amp; objItem.PercentProcessorTime &lt;BR /&gt;Next &lt;BR /&gt;  &lt;BR /&gt;'Gets MEMORY Usage &lt;BR /&gt;Set colItems = GetObject("WinMgmts:root/cimv2").ExecQuery("Select * FROM Win32_PerfFormattedData_PerfOS_Memory ") &lt;BR /&gt;For Each objItem In colItems    &lt;BR /&gt; strLinePercentCommittedBytesInUse = strLinePercentCommittedBytesInUse &amp;amp; " " &amp;amp; objItem.PercentCommittedBytesInUse &lt;BR /&gt;Next &lt;BR /&gt;'Gets FREE SPACE Report &lt;BR /&gt;Set oDrives = objFSO.Drives &lt;BR /&gt;For Each oDrive In oDrives &lt;BR /&gt; Select Case oDrive.DriveType &lt;BR /&gt;  Case 2 'Fixed Drives     &lt;BR /&gt;   strLineDriveSpace = strLineDriveSpace &amp;amp; " " &amp;amp; oDrive.DriveLetter &amp;amp; "\: " &amp;amp; Round(oDrive.FreeSpace / (1024 * 1024)) &amp;amp; "MB free (" &amp;amp; Round(100 * (oDrive.FreeSpace / oDrive.TotalSize), 2) &amp;amp; " %) " &lt;BR /&gt; End Select &lt;BR /&gt;Next &lt;BR /&gt;&lt;BR /&gt;'Output to text &lt;BR /&gt;Set objOutFile = objFSO.OpenTextFile("C:\Healthcheck\healthcheck.csv", 2, True) &lt;BR /&gt;objOutFile.WriteLine "Date ," &amp;amp; strLineDate &amp;amp; ", Time ," &amp;amp; strLineTime &lt;BR /&gt;objOutFile.WriteLine "Host Name ," &amp;amp; oWshSysEnv("COMPUTERNAME")&lt;BR /&gt;objOutFile.WriteLine  "-------------------------------------------------------"&lt;BR /&gt;objOutFile.WriteLine "Processor Usage (%)," &amp;amp; strLineProcessorTime&lt;BR /&gt;objOutFile.WriteLine "Memory Usage (%)," &amp;amp; strLinePercentCommittedBytesInUse&lt;BR /&gt;objOutFile.WriteLine "Drive Free Space ," &amp;amp; strLineDriveSpace &lt;BR /&gt;objOutFile.WriteLine  "**********************************************************"&lt;BR /&gt;'WScript.Echo "DONE" &lt;BR /&gt;WScript.Quit &lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2010 10:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/command-or-scripts-needed/m-p/5237646#M7406</guid>
      <dc:creator>cool...</dc:creator>
      <dc:date>2010-06-21T10:30:55Z</dc:date>
    </item>
  </channel>
</rss>

