windows上也有os watcher:OSWFW。
目前支持的windows版本是:
Windows XP (x86 & x64)
Windows 7 (x86 & x64)
Windows 8 (x86 & x64)
Windows 2003 R1 & R2 (x86 and x64)
Windows 2008 R1 & R2 (x86 & x64)
Windows 2012
可以在MOS中Doc ID 433472.1下载。
官方文档虽然说不支持中文语言,但是其实可以通过修改cmd的窗口代码页来实现。
此时如果运行oswatcher,是会报错:
1
2
3
4
|
Start of Operating System Watcher for Windows
此时不应有 6.1。
C:\oswfw>
|
如果cmd的默认代码页属性修改不了,那么修改注册表:
1 win键+R打开“运行”对话框,输入regedit打开注册表编辑器。
2 找到 [HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
3 修改”CodePage”=十进制,65001
另外,如果不修改注册表,session级修改也可以。
1
2
3
|
1.打开cmd窗口
2.在cmd窗口输入 chcp 437
3.开始运行osw
|
开始运行osw,如下是表示每隔30秒收集一次,收集24小时。
1
|
c:\oswfw_2_5.1>oswatcher 30 24
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
Start of Operating System Watcher for Windows
Processing: OSWThread OSWSystem OSWServer_Work_Queue OSWProcessor OSWProcess OSWLogicalDisk OSWPhysicalDisk OSWPagingFile OSWNetstat OSWMemory OSWCache
Config Dir: c:\oswfw
Output File Directory: c$\oswfw
Output File Type: csv
Snapshot Interval: 00:00:30 seconds
Runtime Interval: 0024:00:00 (/du 0024:00) hours
Node List: JIMMYHE
OSWatcher for Windows written by:
Kevin Reardon, Center of Expertise, Oracle Corporation
Starting OSWatcher for Windows V2.5.1 on 周三 2017/02/22
Creating Archive Directories:
Node JIMMYHE created Archive
Node JIMMYHE created Archive\OSWThread
Node JIMMYHE created Archive\OSWSystem
Node JIMMYHE created Archive\OSWServer_Work_Queue
Node JIMMYHE created Archive\OSWProcessor
Node JIMMYHE created Archive\OSWProcess
Node JIMMYHE created Archive\OSWLogicalDisk
Node JIMMYHE created Archive\OSWPhysicalDisk
Node JIMMYHE created Archive\OSWPagingFile
Node JIMMYHE created Archive\OSWNetstat
Node JIMMYHE created Archive\OSWMemory
Node JIMMYHE created Archive\OSWCache
Creating OSWatcher Counters
Create Counter: OSWThread
Start Counter: OSWThread
Create Counter: OSWSystem
Start Counter: OSWSystem
Create Counter: OSWServer_Work_Queue
Start Counter: OSWServer_Work_Queue
Create Counter: OSWProcessor
Start Counter: OSWProcessor
Create Counter: OSWProcess
Start Counter: OSWProcess
Create Counter: OSWLogicalDisk
Start Counter: OSWLogicalDisk
Create Counter: OSWPhysicalDisk
Start Counter: OSWPhysicalDisk
Create Counter: OSWPagingFile
Start Counter: OSWPagingFile
Create Counter: OSWNetstat
Start Counter: OSWNetstat
Create Counter: OSWMemory
Start Counter: OSWMemory
Create Counter: OSWCache
Start Counter: OSWCache
Create OSWCleanup
ERROR: Unable to establish existence of the account specified.
Data Collector Set Type Status
-------------------------------------------------------------------------------
OSWCache Counter Running
OSWLogicalDisk Counter Running
OSWMemory Counter Running
OSWNetstat Counter Running
OSWPagingFile Counter Running
OSWPhysicalDisk Counter Running
OSWProcess Counter Running
OSWProcessor Counter Running
OSWServer_Work_Queue Counter Running
OSWSystem Counter Running
OSWThread Counter Running
The command completed successfully.
The status of OSWClenanup on JIMMYHE is: JIMMYHE
c:\oswfw>
|
== update 2017-02-23 ===========================
其实windows版本的oswatcher,是调用了windows系统的性能监视器。
单击“开始”,在“开始搜索”框中单击,键入 perfmon,就可以打开性能监视器。添加监控项目。而已经安装oswatcher的性能监视器,如下图所示:
参考:
Doc ID 433472.1 – OS Watcher For Windows (OSWFW) User Guide
http://www.2cto.com/os/201407/321537.html
https://my.oschina.net/aiguozhe/blog/108542
https://technet.microsoft.com/zh-cn/library/cc749115(v=ws.11).aspx