DRAFT
Czasem trzeba coś zanalizować w środowisku gdzie nie mamy żadnych automatów, i robić to systematycznie.
Najpierw trzeba zebrać dane. Można ręcznie przeedytować w zakładce, można spróbować przeskryptować (poniżej nieco pomocnych materiałów)
ew. http://www.petri.co.il/download_free_reskit_tools.htm i np.
-
- TypePerf: Performnce Data in the Command Window - This command-line tool displays real-time data from Performance Monitor counters in a command window.
- Exctrlst: Extensible Performance Counter List - Displays information on extensible performance counter DLLs installed on a computer.
- PerfMetr: Performance Meter - This command-line tool displays text-based information on the performance of a computer running Windows 2000.
O to przykład stworzenia i uruchomienia zestawu counterów:
- logman.exe create counter ZBPerf-Counter-Log -f bincirc -v mmddhhmm ^
- -max 250 -c "\LogicalDisk(*)\*" "\Memory\*" ^
- "\Network Interface(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" ^
- "\Process(*)\*" "\Redirector\*" "\Server\*" "\System\*" -si 00:05:00
- logman start ZBPerf-Counter-Log
logman.exe create counter ZBPerf-Counter-Log -f bincirc -v mmddhhmm ^
-max 250 -c "\LogicalDisk(*)\*" "\Memory\*" ^
"\Network Interface(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" ^
"\Process(*)\*" "\Redirector\*" "\Server\*" "\System\*" -si 00:05:00
logman start ZBPerf-Counter-Log
A tu przykład jak na bieżąco, z linii poleceń, np. pod Windows Server Core, wyświetlać wyniki counterów.
- PS C:\Users\ziemekb\Desktop> typeperf "Memory\Available Bytes" -si 00:05
-
- "(PDH-CSV 4.0)","\\ZBDELL\Memory\Available Bytes"
- "01/13/2009 23:32:42.470","1355292672.000000"
- "01/13/2009 23:32:47.470","1355522048.000000"
- "01/13/2009 23:32:52.471","1355481088.000000"
- "01/13/2009 23:32:57.473","1357885440.000000"
PS C:\Users\ziemekb\Desktop> typeperf "Memory\Available Bytes" -si 00:05
"(PDH-CSV 4.0)","\\ZBDELL\Memory\Available Bytes"
"01/13/2009 23:32:42.470","1355292672.000000"
"01/13/2009 23:32:47.470","1355522048.000000"
"01/13/2009 23:32:52.471","1355481088.000000"
"01/13/2009 23:32:57.473","1357885440.000000"
Potem zebrane dane należy przeanalizować. Np.
http://doubliewkay.spaces.live.com/Blog/cns!6B6E578C36BB444C!374.entry?sa=889481734