使用OSWatcher来监控服务器

OSWatcher是oracle提供的监控服务器资源的工具,配合AWR等工具为调优数据库提供基本信息。
OSWatcher有支持不同平台,
WINDOWS平台下:OSWatcher For Windows (OSWFW) 
LINUX平台:OS Watcher Black Box

WINDOWS平台使用:
1.下载OSWFW,下载地址:
可以在meatlink下载,也可以在下面的地址下载:
http://www.kuaipan.cn/file/id_10620947316867775.htm
2.如果需要在RAC的环境中运行OSWFW首先需要修改配置文件
OSWPrivNet.config.template   重命名为OSWPrivNet.config
修改其中的内容,加上private IP地址。
并运行OSWPrivNet.bat来检测环境
3.配置OSWFW
OSWatcher {ARG1} {ARG2} {ARG3}
ARG1 = Snapshot interval in seconds      采集系统运行状态的间隔,单位为秒
ARG2 = Runtime Interval - hours OSWatcher will run    OSWatcher运行的时间,单位是小时
ARG3 = RAC - detect Real Application Cluster    是否为RAC上
例如:
    OSWatcher 60 1  一分钟采集一次系统数据,采集一个小时。
配置完成后OSWatcher会自动启动,在第一次启动时会创建Archive文件夹,日志信息保存在此文件夹中
4.启动OSWatcher
OSWatcher start {node name}
5.停止OSWatcher
OSWatcher start {node name}
6.查看OSWatcher 状态
OSWatcher status {node name}
7.查看计算器的详细信息
OSWatcher query {node name} {counter / OSWCleanup / OSWPrivNet}
查看所有计数器的详细信息
oswatcher query all

LINUX平台使用OS Watcher Black Box ,相比起windows平台OS Watcher Black Box 功能更为强大
提供了分析工具OS Watcher Black Box Analyzer来分析采集的数据。
1.下载OSWBB
可以在meatlink下载,也可以在下面的地址下载:
http://www.kuaipan.cn/file/id_10620947316867774.htm
2.如果要在RAC环境下使用,需要在每台机子上都复制OSWBB
并且要Example private.net 改名为private.net 并修改其中的内容
改为自己的私有IP
3.启动OSWBB
./startoswbb.sh   ARG1 ARG2
ARG1 = Snapshot interval in seconds      采集系统运行状态的间隔,单位为秒
ARG2 = Runtime Interval - hours OSWatcher will run    OSWatcher运行的时间,单位是小时
示例:
           ./startoswbb.sh  以默认参数启动OSWBB
           ./startoswbb.sh 60 10 & 一分钟收集一次,执行10小时,后台运行
4.停止OSWBB
./stopOSWbb.sh
5.启动OSWBBA来分析系统运行数据
java -jar oswbba.jar -i <archive 路径>
选项如下:
   
OPTIONS

The following options are supported:
1..3:
These options display graphs of specific CPU components of vmstat. Option 1 displays the process run, wait and block queues. Option 2 displays CPU utilization graphs for system, user and idle. Option 3 displays graphs for context switches and interrupts.
4:
This option displays memory graphs for free memory and available swap..
5:
This option uses the extended disk statistics option of iostat to display a list of all devices for solaris, aix and linux platforms only. The device name along with the average service time of each device is then listed. The user then selects one of the devices out of the list of devices. Graphs are available for reads/second, writes/second, service time and percent busy.
6..8:
These options generate images of the graph to a file without displaying them to the screen. All graphs for that specific category, CPU, memory or IO will be generated and placed in the directory where oswbba is located. To override this directory and name an alternative location to place these files use option L discussed below.
L:
User specified location of an existing directory to place any gif files generated by oswbba. This overrides the oswbba automatic convention for placing all gif files in the /gif directory. This directory must pre-exist!
A:
This option analyzes the files in the archive and produces a report
P:
Generates an html profile.
T:
By default OSWbba parses all the OSWbb log files contained in the input directory and the default graphs are based on the entire time span of all the logs. By default, OSWbb keeps the last 48 hours of logs in the archive. This means the default graph will graph all  48 hours of of data. This option allows the user to specify a different subset of times within the entire collection . An example would be only to graph a 2 hour period out of the entire 48 hour collection.
D:
This option resets the graphing timescale back to the time encompassing the entire log collection.
R:
This option removes all previously displayed graphs from the screen.
Q:
Exits the program.

你可能感兴趣的:(windows,平台,target,下载地址,blank)