linux OSwatch 安装试用

来源:互联网 发布:淘宝换购怎么设置 编辑:程序博客网 时间:2024/04/28 03:38
   oswatch是通过调用系统的命令完成信息的收集,有ps,top,mpstat,iostat,netstat,traceroute,vmstat。支持的操作系统有AIX ,Tru64,Solaris,HP-UX,Linux,windows。

[root@oracle oswbb]tar -xf oswbb732.tar
[root@oracle oswbb]cd  oswbb
[root@oracle oswbb]# ls -l
总计 544
drwxrwxr-x  2 oracle oinstall   4096 2014-05-02 analysis
drwxr-xr-x 12 oracle oinstall   4096 12-22 15:18 archive
-rwxrwxr-x  1 oracle oinstall     67 2014-01-16 call_du.sh
-rwxrwxr-x  1 oracle oinstall     68 2013-10-08 call_sar.sh
-rwxrwxr-x  1 oracle oinstall     71 2014-01-07 call_uptime.sh
drwxrwxr-x  2 oracle oinstall   4096 2014-05-02 data
drwxrwxr-x  4 oracle oinstall   4096 2014-09-08 docs
-rwxrwxr-x  1 oracle oinstall    626 2014-01-16 Example_extras.txt
-rwxrwxr-x  1 oracle oinstall   1864 2013-10-08 Exampleprivate.net
drwxrwxr-x  2 oracle oinstall   4096 2014-05-02 gif
-rwxrwxr-x  1 oracle oinstall    772 2014-05-08 ifconfigsub.sh
-rwxrwxr-x  1 oracle oinstall    743 2013-10-08 iosub.sh
drwxr-xr-x  2 oracle oinstall   4096 12-22 15:25 locks
-rwxrwxr-x  1 oracle oinstall   1486 2014-01-09 ltop.sh
-rwxrwxr-x  1 oracle oinstall    542 2013-10-08 mpsub.sh
-rwxrwxr-x  1 oracle oinstall    740 2013-10-08 nfssub.sh
-rwxrwxr-x  1 oracle oinstall   5062 2014-09-17 OSWatcherFM.sh
-rwxrwxr-x  1 oracle oinstall  34832 2014-09-17 OSWatcher.sh
-rwxrwxr-x  1 oracle oinstall 235221 2014-09-05 oswbba.jar
-rwxrwxr-x  1 oracle oinstall    414 2013-10-08 oswib.sh
-rwxrwxr-x  1 oracle oinstall    435 2014-01-09 oswnet.sh
-rwxrwxr-x  1 oracle oinstall    825 2013-10-08 oswrds.sh
-rwxrwxr-x  1 oracle oinstall    524 2013-10-08 oswsub.sh
drwxrwxr-x  2 oracle oinstall   4096 2014-05-02 profile
-rwxrwxr-x  1 oracle oinstall   1445 2013-10-18 psmemsub.sh
drwxrwxr-x  2 oracle oinstall   4096 2014-05-02 src
-rwxrwxr-x  1 oracle oinstall   2385 2013-10-08 startOSWbb.sh
-rwxrwxr-x  1 oracle oinstall    558 2014-04-17 stopOSWbb.sh
-rwxrwxr-x  1 oracle oinstall    746 2013-11-06 tarupfiles.sh
-rwxrwxr-x  1 oracle oinstall   4219 2013-11-06 tar_up_partial_archive.sh
drwxr-xr-x  2 root   root       4096 12-22 15:25 tmp
-rwxrwxr-x  1 oracle oinstall    537 2014-01-09 topaix.sh
-rwxrwxr-x  1 oracle oinstall    544 2013-10-08 vmsub.sh
-rwxrwxr-x  1 oracle oinstall   1486 2014-01-09 xtop.sh

[root@oracle oswbb]# date
2015年 12月 22日 星期二 15:57:13 CST
[root@oracle oswbb]# export LANG=en_US
[root@oracle oswbb]# date
Tue Dec 22 16:08:46 CST 2015


注意事项:

1. 要把操作系统的日期设置为英文的,要不然待会解析的时候会报错,不同的操作系统可能设置方法不同,看一下locale。
./startOSWbb.sh 10 3   启动<取样间隔(以秒为单位)><持续运行时间(以小时为单位)>,这里是接下来3个小时,10秒采样一次
./stopOSWbb.sh   停止

2.liunx上要export  DISPLAY=10.10.32.100:0

 本地要安装xmanager 并启动xmanager passive


查看监控信息

[root@oracle oswbb]# java -jar oswbba.jar -i /bea/gg/oswbb/archive
Starting OSW Analyzer V7.3.1
OSWatcher Analyzer Written by Oracle Center of Expertise
Copyright (c)  2014 by Oracle Corporation
Parsing Data. Please Wait...
Scanning file headers for version and platform info...
Parsing file oracle_iostat_15.12.22.1600.dat ...
Parsing file oracle_vmstat_15.12.22.1600.dat ...
Parsing file oracle_netstat_15.12.22.1600.dat ...
Parsing file oracle_top_15.12.22.1600.dat ...
Parsing file oracle_ps_15.12.22.1600.dat ...
Parsing Completed.

Enter 1 to Display CPU Process Queue Graphs
Enter 2 to Display CPU Utilization Graphs
Enter 3 to Display CPU Other Graphs
Enter 4 to Display Memory Graphs
Enter 5 to Display Disk IO Graphs
Enter 6 to Generate All CPU Gif Files
Enter 7 to Generate All Memory Gif Files
Enter 8 to Generate All Disk Gif Files

Enter L to Specify Alternate Location of Gif Directory
Enter T to Alter Graph Time Scale Only (Does not change analysis dataset)
Enter D to Return to Default Graph Time Scale
Enter R to Remove Currently Displayed Graphs
Enter A to Analyze Data
Enter S to Analyze Subset of Data(Changes analysis dataset including graph time scale)
Enter P to Generate A Profile
Enter X to Export Parsed Data to File
Enter Q to Quit Program

Please Select an Option:1

出来图表,试用之后,我还是喜欢nmon.


0 0
原创粉丝点击