- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Command or Scripts needed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2010 11:00 PM
04-29-2010 11:00 PM
Command or Scripts needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2010 02:25 AM
04-30-2010 02:25 AM
Re: Command or Scripts needed
Start - run - perfmon.msc
counter logs - New Log Settings -
Add Counters (Pick the objects or counters you want to monitor).
At the Log Files tab, pick Text File (Comma delimited)
Add any settings you may need and you're ready to go.
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2010 12:24 AM
05-03-2010 12:24 AM
Re: Command or Scripts needed
Since you need to do this in a number of servers.
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.
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.
You can even dump the output to a .blg file so you can additionally view counter usage charts.
Hope it helps.
Edgar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2010 12:20 AM
05-04-2010 12:20 AM
Re: Command or Scripts needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 08:55 AM
06-08-2010 08:55 AM
Re: Command or Scripts needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2010 03:30 AM
06-21-2010 03:30 AM
Re: Command or Scripts needed
Dim oWsh, oWshSysEnv, objFSO, objWMIService
Dim oDrives, oDrive, objOutFile, colItems, objItem
Dim strLineDate, strLineTime, strLineProcessorTime, strLineDriveSpace, strLinePercentCommittedBytesInUse
Set oWsh = WScript.CreateObject("WScript.Shell")
Set oWshSysEnv = oWsh.Environment("PROCESS")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2")
strLineDate = Date()
strLineTime = Time()
'Gets PROCESSOR Usage
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PerfFormattedData_PerfOS_Processor WHERE Name = '_Total'")
For Each objItem In colItems
strLineProcessorTime = strLineProcessorTime & " " & objItem.PercentProcessorTime
Next
'Gets MEMORY Usage
Set colItems = GetObject("WinMgmts:root/cimv2").ExecQuery("Select * FROM Win32_PerfFormattedData_PerfOS_Memory ")
For Each objItem In colItems
strLinePercentCommittedBytesInUse = strLinePercentCommittedBytesInUse & " " & objItem.PercentCommittedBytesInUse
Next
'Gets FREE SPACE Report
Set oDrives = objFSO.Drives
For Each oDrive In oDrives
Select Case oDrive.DriveType
Case 2 'Fixed Drives
strLineDriveSpace = strLineDriveSpace & " " & oDrive.DriveLetter & "\: " & Round(oDrive.FreeSpace / (1024 * 1024)) & "MB free (" & Round(100 * (oDrive.FreeSpace / oDrive.TotalSize), 2) & " %) "
End Select
Next
'Output to text
Set objOutFile = objFSO.OpenTextFile("C:\Healthcheck\healthcheck.csv", 2, True)
objOutFile.WriteLine "Date ," & strLineDate & ", Time ," & strLineTime
objOutFile.WriteLine "Host Name ," & oWshSysEnv("COMPUTERNAME")
objOutFile.WriteLine "-------------------------------------------------------"
objOutFile.WriteLine "Processor Usage (%)," & strLineProcessorTime
objOutFile.WriteLine "Memory Usage (%)," & strLinePercentCommittedBytesInUse
objOutFile.WriteLine "Drive Free Space ," & strLineDriveSpace
objOutFile.WriteLine "**********************************************************"
'WScript.Echo "DONE"
WScript.Quit