OSW使用报错

OS Watcher简称OSW,用于收集并归档操作系统和网层相关信息的工具,OSW内部是使用以下操作系统提供的命令来收集数据,它可以放在后台定期间隔一段时间自动收集,并可以设定数据保留时间。具体的使用方法就不多说了,MOS上和网上都有相关的说明。下面主要简单的记录最近使用遇到的错误。

1.生成采集的数据中的日期格式必需是准英文格式,不然执行上面命令时无法格式化输出图形,由于linux系统中的LANG=zh_CN,所以会报下面的错误信息

 

[10:00:28][oracle@sinosoft14 oswbb]$ java -jar  oswbba.jar -i /u01/oswbb/archive/
[10:00:28]
[10:00:28]Starting OSW Black Box Analyzer V6.0.1
[10:00:28]OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
[10:00:28]Copyright (c)  2012 by Oracle Corporation
[10:00:28]
[10:00:28]Parsing Data. Please Wait...
[10:00:28]
[10:00:28]Scanning file headers for version and platform info...
[10:00:28]
[10:00:28]
[10:00:28]Parsing file sinosoft14_iostat_13.08.27.1700.dat ...
[10:00:28]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:00:28]Timestamp Error. Found format: 8月 27 17:59:13 2013
[10:00:28]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:00:28]Timestamp Error. Found format: 8月 27 17:59:44 2013
[10:00:28]Parsing file sinosoft14_iostat_13.08.27.1800.dat ...
[10:00:28]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:00:28]Timestamp Error. Found format: 8月 27 18:00:14 2013
[10:00:28]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:00:28]Timestamp Error. Found format: 8月 27 18:00:44 2013
[10:00:28]
[10:00:28]
[10:00:28]Parsing file sinosoft14_vmstat_13.08.27.1700.dat ...
[10:00:28]An exception occured in insertVmstatLists on line 0
[10:00:28]An exception occured in insertVmstatLists on line 0
[10:00:28]Parsing file sinosoft14_vmstat_13.08.27.1800.dat ...
[10:00:28]An exception occured in insertVmstatLists on line 0
[10:00:28]An exception occured in insertVmstatLists on line 0
[10:00:28]
[10:00:28]Parsing file sinosoft14_netstat_13.08.27.1700.dat ...
[10:00:28]Parsing file sinosoft14_netstat_13.08.27.1800.dat ...
[10:00:28]
[10:00:28]
[10:00:28]Parsing file sinosoft14_top_13.08.27.1700.dat ...
[10:00:28]An exception occured in processTopData on line 9
[10:00:28]An exception occured in processTopData on line 60
[10:00:28]Parsing file sinosoft14_top_13.08.27.1800.dat ...
[10:00:28]An exception occured in processTopData on line 9
[10:00:28]An exception occured in processTopData on line 60
[10:00:28]
[10:00:28]
[10:00:28]
[10:00:28]No data found in input archive directory /u01/oswbb/archive/
[10:00:28]Please rerun oswbba with proper input directory containing OSW archive data.
[10:00:28]Program aborting...
[10:00:28]
[10:01:58][oracle@sinosoft14 oswbb]$ export LANG=zh_US
[10:02:01][oracle@sinosoft14 oswbb]$ java -jar  oswbba.jar -i /u01/oswbb/archive/
[10:02:01]
[10:02:01]Starting OSW Black Box Analyzer V6.0.1
[10:02:01]OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
[10:02:01]Copyright (c)  2012 by Oracle Corporation
[10:02:01]
[10:02:01]Parsing Data. Please Wait...
[10:02:01]
[10:02:01]Scanning file headers for version and platform info...
[10:02:01]
[10:02:01]
[10:02:01]Parsing file sinosoft14_iostat_13.08.27.1700.dat ...
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 17:59:13 2013
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 17:59:44 2013
[10:02:01]Parsing file sinosoft14_iostat_13.08.27.1800.dat ...
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 18:00:14 2013
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 18:00:44 2013
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 18:01:14 2013
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 18:01:44 2013
[10:02:01]Timestamp Error. Expected format: May 3 16:11:12 2006.
[10:02:01]Timestamp Error. Found format: 8??? 27 18:02:14 2013

[10:02:01]
[10:02:01]
[10:02:01]Parsing file sinosoft14_vmstat_13.08.27.1700.dat ...
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]Parsing file sinosoft14_vmstat_13.08.27.1800.dat ...
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]An exception occured in insertVmstatLists on line 0
[10:02:01]
[10:02:01]Parsing file sinosoft14_netstat_13.08.27.1700.dat ...
[10:02:01]Parsing file sinosoft14_netstat_13.08.27.1800.dat ...
[10:02:01]
[10:02:01]
[10:02:01]Parsing file sinosoft14_top_13.08.27.1700.dat ...
[10:02:01]An exception occured in processTopData on line 9
[10:02:01]An exception occured in processTopData on line 60
[10:02:01]Parsing file sinosoft14_top_13.08.27.1800.dat ...
[10:02:01]An exception occured in processTopData on line 9
[10:02:01]An exception occured in processTopData on line 60
[10:02:01]An exception occured in processTopData on line 111
[10:02:01]An exception occured in processTopData on line 162
[10:02:01]An exception occured in processTopData on line 213
[10:02:01]
[10:02:01]
[10:02:01]
[10:02:01]No data found in input archive directory /u01/oswbb/archive/
[10:02:01]Please rerun oswbba with proper input directory containing OSW archive data.
[10:02:01]Program aborting...


   由此可见把分析数据的客户端的LANG改了还是不行 No data found in input archive directory /u01/oswbb/archive/这个错误让人费解明明archive里面有*.dat的文件,却说没有,而且文件的日期格式出现了乱码。

在把收集端的LANG改成zh_US,在此收集就可以了。

 

[10:13:23][root@sinosoft14 oswbb]# java -jar  oswbba.jar -i /u01/oswbb/archive/
[10:13:23]
[10:13:23]Starting OSW Black Box Analyzer V6.0.1
[10:13:23]OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
[10:13:23]Copyright (c)  2012 by Oracle Corporation
[10:13:23]
[10:13:23]Parsing Data. Please Wait...
[10:13:23]
[10:13:23]Scanning file headers for version and platform info...
[10:13:23]
[10:13:23]
[10:13:23]Parsing file sinosoft14_iostat_13.08.27.1800.dat ...
[10:13:23]
[10:13:23]
[10:13:23]Parsing file sinosoft14_vmstat_13.08.27.1800.dat ...
[10:13:23]
[10:13:23]Parsing file sinosoft14_netstat_13.08.27.1800.dat ...
[10:13:23]
[10:13:23]
[10:13:23]Parsing file sinosoft14_top_13.08.27.1800.dat ...
[10:13:23]
[10:13:23]
[10:13:23]
[10:13:23]Parsing Completed.
[10:13:23]
[10:13:23]
[10:13:23]
[10:13:23]
[10:13:23]
[10:13:23]Enter 1 to Display CPU Process Queue Graphs
[10:13:23]Enter 2 to Display CPU Utilization Graphs
[10:13:23]Enter 3 to Display CPU Other Graphs
[10:13:23]Enter 4 to Display Memory Graphs
[10:13:23]Enter 5 to Display Disk IO Graphs
[10:13:23]
[10:13:23]Enter 6 to Generate All CPU Gif Files
[10:13:23]Enter 7 to Generate All Memory Gif Files
[10:13:23]Enter 8 to Generate All Disk Gif Files
[10:13:23]
[10:13:23]Enter L to Specify Alternate Location of Gif Directory
[10:13:23]Enter T to Specify Different Time Scale
[10:13:23]Enter D to Return to Default Time Scale
[10:13:23]Enter R to Remove Currently Displayed Graphs
[10:13:23]Enter P to Generate A Profile
[10:13:23]Enter A to Analyze Data
[10:13:23]Enter Q to Quit Program
[10:13:23]
[10:13:25]Please Select an Option:6
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Run_Queue.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Block_Queue.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Cpu_Idle.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Cpu_System.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Cpu_User.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Cpu_Interrupts.gif
[10:13:26]Generating file gif/Aug27180548_1377598438/OSWg_OS_Context_Switches.gif
[10:13:26]
[10:13:26]
[10:13:26]
[10:13:26]
[10:13:26]Enter 1 to Display CPU Process Queue Graphs
[10:13:26]Enter 2 to Display CPU Utilization Graphs
[10:13:26]Enter 3 to Display CPU Other Graphs
[10:13:26]Enter 4 to Display Memory Graphs
[10:13:26]Enter 5 to Display Disk IO Graphs
[10:13:26]
[10:13:26]Enter 6 to Generate All CPU Gif Files
[10:13:26]Enter 7 to Generate All Memory Gif Files
[10:13:26]Enter 8 to Generate All Disk Gif Files
[10:13:26]
[10:13:26]Enter L to Specify Alternate Location of Gif Directory
[10:13:26]Enter T to Specify Different Time Scale
[10:13:26]Enter D to Return to Default Time Scale
[10:13:26]Enter R to Remove Currently Displayed Graphs
[10:13:26]Enter P to Generate A Profile
[10:13:26]Enter A to Analyze Data
[10:13:26]Enter Q to Quit Program

 

也不报错误“No data found in input archive directory /u01/oswbb/archive/”错误了,可能是搜集端的LANG不对导致的生成的文件的日期格式是中文,当解析的时候不能解析,从而找不到文件吧!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值