Performance Monitor Tutorial for Windows
Use perfmon like a pro!
Performance Monitor is a simple yet powerful visualization tool for viewing performance data both in real time and from log files.
Video Rating: 0 / 5
Categories: Performance Monitoring Log File Tags: Monitor, Performance, Tutorial, Windows
Monitor System Performance with Windows PowerShell
Windows PowerShell is Microsoft’s task automation framework, consisting of a command-line shell and associated scripting languagebuilt on top of, and integrated with, the .NET Framework. PowerShell provides full access to COM and WMI enabling administrators to perform administrative tasks on both local and remote Windows Systems. Of course, one of the useful feature in Windows 7 is Windows PowerShell for gathering performance data. Here are the three new Windows PowerShell cmdlets provide functionality as follows:
Export-counter Imports performance counter log files and creates objects that represent each counter sample in the log.
Import-counter Exports PerformanceCounterSampleSet objects as performance counter log (.blg, .csv, .tsv) files.
Get-counter Gets real-time performance counter data from local and remote computers.
For instance, the following Windows PowerShell command gets the current “% Processor Time” combined values for all processors on the local computer every 2 seconds until it has 100 values and displays the captured data: PS C:\Users\mallen>Get-counter -Counter “\Processor(_Total)\% Processor Time” -SampleInterval 2 -MaxSamples 100
The following command continuously gets the current “% Processor Time” combined values for all processors on the local computer every second (the default sampling interval) and displays the captured data until you press CTRL+C: PS C:\Users\mallen>Get-counter -Counter “\Processor(_Total)\% Processor Time” –Continuous
Of course, you can pipe the output of the Get-counter cmdlet into the Export-counter cmdlet.For example, the following command gets the current “% Processor Time” combined values for all processors on the local computer every 2 seconds until it has 100 values and exports the captured data as a performance counter log file named Data1.blg, which is saved in the current directory (here the root folder of user Michael Allen’s user profile): PS C:\Users\mallen>Get-counter “\Processor(*)\% Processor Time” -SampleInterval 2 -MaxSamples 100 | Export-counter -Path $ home\data1.blg
Also you can also pipe the output of the Import-counter cmdlet into the Export-counter cmdlet. You might do this, take an example, to convert a performance monitor log file from one format to another, such as from .csv to .blg format.
If you also have some questions or you want to download the softwares I mentioned above,
you can visit the original article from:
http://www.newton360.com/Detail/Monitor-System-Performance-with-Windows-PowerShell.html
Welcome to http://www.newton360.com to get more informatin, including Windows 7 tips,
news, wallpapers and softwares…etc.
Newton360.com is the BEST and FREE Windows 7 tweaks website, Newton360.com also provide free Windows 7 wallpapers, themes and Windows 7 tips. Welcome to http://www.newton360.com to get more informatin, including Windows 7 tips, news, wallpapers and softwares…etc.
Learn more from Newton360.com
Article from articlesbase.com
Find More Performance Monitoring Log File Articles
Categories: Performance Monitoring Log File Tags: Monitor, Performance, PowerShell, System, Windows
