這篇文章主要為大家展示了“Oracle OS Watcher 工具怎么用”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“Oracle OS Watcher 工具怎么用”這篇文章吧。
目前創(chuàng)新互聯(lián)建站已為上千余家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)站空間、網(wǎng)站托管、服務(wù)器租用、企業(yè)網(wǎng)站設(shè)計(jì)、臨高網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。
一、OS Watcher Black Box 安裝配置(oswbb)
1.下載oswbb的tar包,解壓即可并授權(quán):
tar xvf oswbb.tar
chmod 744 *
2.卸載:
要卸載OSWatcher,請(qǐng)?jiān)趏swbb目錄中發(fā)出以下命令:
rm -rf oswbb
3.設(shè)置OSWbb
當(dāng)OSWbb 安裝完成之后,就可以使用start 和stop 腳本,在OSWbb第一次使用時(shí),它會(huì)創(chuàng)建一些歸檔的子目錄。 這些歸檔目錄包含7個(gè)子目錄,每一個(gè)子目錄對(duì)應(yīng)一個(gè)收集數(shù)據(jù)。 這7個(gè)目錄分別對(duì)應(yīng):top, vmstat, iostat, mpstat, netstat, ps 和一個(gè)可選的traceprivate network。
要啟動(dòng)private network,必須先在oswbb目錄下創(chuàng)建一個(gè)private.net的可執(zhí)行文件。 這個(gè)文件里的內(nèi)容可以是用來(lái)驗(yàn)證RAC private network的traceroute命令
設(shè)置私網(wǎng)間通訊檢查:
a)進(jìn)入解壓目錄,拷貝Exampleprivate.net 為 private.net 到同一個(gè)目錄下。
b).在private.net中找到您對(duì)應(yīng)的系統(tǒng)平臺(tái),替換下面的private_nodename1 , private_nodename2 為具體的私網(wǎng)IP或者主機(jī)名
traceroute -r -F private_nodename1
traceroute -r -F private_nodename2
c). 將private.net中其它的平臺(tái)部分刪除。
d). 千萬(wàn)不要?jiǎng)h除下面的內(nèi)容:rm locks/lock.file
4.啟動(dòng)/停止oswbb Starting / Stopping oswbb
啟動(dòng)oswbb:Starting oswbb
To start the oswbb utility execute the startOSWbb.sh shell script from the directory where oswbb was installed. This script has 2 arguments which control the frequency that data is collected and the number of hour's worth of data to archive.
ARG1 = snapshot interval in seconds.
ARG2 = the number of hours of archive data to store.
ARG3 = (optional) the name of a compress utility to compress each file automatically after it is created.
ARG4 = (optional) an alternate (non default) location to store the archive directory.
If you do not enter any arguments the script runs with default values of 30 and 48 meaning collect data every 30 seconds and store the last 48 hours of data in archive files.
--如果沒(méi)有在啟動(dòng)時(shí)沒(méi)有指定這2個(gè)參數(shù),那么默認(rèn)情況是30秒收集一次,歸檔數(shù)據(jù)保留48個(gè)小時(shí)。
Example 1: This would start the tool and collect data at default 30 second intervals and log the last 48 hours of data to archive files.
這將啟動(dòng)該工具并以默認(rèn)的30秒間隔收集數(shù)據(jù),并將最近48小時(shí)的數(shù)據(jù)記錄到歸檔文件
./startOSWbb.sh
Example 2: This would start the tool and collect data at 60 second intervals and log the last 10 hours of data to archive files and automatically compress the files.
示例2:這將啟動(dòng)該工具并以60秒為間隔收集數(shù)據(jù),并記錄最近10小時(shí)的數(shù)據(jù)以歸檔文件并自動(dòng)壓縮文件。
./startOSWbb.sh 60 10 gzip
Example 3: This would start the tool and collect data at 60 second intervals and log the last 10 hours of data to archive files, compress the files and set the archive directory to a non-default location.
示例3:這將啟動(dòng)該工具并以60秒為間隔收集數(shù)據(jù),并記錄最近10小時(shí)的數(shù)據(jù)以歸檔文件,壓縮文件并將歸檔目錄設(shè)置為非默認(rèn)位置
./startOSWbb.sh 60 10 gzip /u02/tools/oswbb/archive
Example 4: This would start the tool and collect data at 60 second intervals and log the last 48 hours of data to archive files, NOT compress the files and set the archive directory to a non-default location.
示例4:這將啟動(dòng)該工具并以60秒為間隔收集數(shù)據(jù),并將最后48小時(shí)的數(shù)據(jù)記錄到歸檔文件,而不是壓縮文件,并將歸檔目錄設(shè)置為非默認(rèn)位置。
./startOSWbb.sh 60 48 NONE /u02/tools/oswbb/archive
Example 5: This would start the tool, put the process in the background, enable to the tool to continue running after the session has been terminated, collect data at 60 second intervals, and log the last 10 hours of data to archive files.
示例5:這將啟動(dòng)該工具,將該進(jìn)程置于后臺(tái),使該工具在會(huì)話終止后繼續(xù)運(yùn)行,以60秒為間隔收集數(shù)據(jù),并將最近10小時(shí)的數(shù)據(jù)記錄到歸檔文件
nohup ./startOSWbb.sh 60 10 &
停止oswbb:Stopping oswbb
To stop the oswbb utility execute the stopOSWbb.sh command from the directory where oswbb was installed. This terminates all the processes associated with the tool.
Example:
./stopOSWbb.sh
二、OS Watcher Black Box Analyzer安裝配置(oswbba)
MOS:OS Watcher Black Box Analyzer User Guide [ID 461053.1]
2.1在啟動(dòng)OSWbba 工具之前,必須先安裝java 1.4.2 或以上版本。 當(dāng)然如果安裝過(guò)了Oracle,那么oracle 安裝目錄里也有java。
[root@dbrac1 ~]# su - oracle
[oracle@dbrac1]$java -version
java version"1.6.0_20"
OpenJDK RuntimeEnvironment (IcedTea6 1.9.7) (rhel-1.39.1.9.7.el6-x86_64)
OpenJDK 64-BitServer VM (build 19.0-b09, mixed mode)
--我這里安裝的java 是1.6 的版本。
如果使用Oracle的Java,那么需要修改一下環(huán)境變量,在Path里添加Java的路徑,如:
PATH=$ORACLE_HOME/jdk/bin:$PATH
2.2啟動(dòng)oswbba
注意這里顯示圖片需要條用X windows或xmanger圖形工具,所以我們要在圖形窗口中執(zhí)行:
Once the correct version of java has been verified, you can start oswbba. oswbba requires an input directory to run. To specify the input directory you must use the -i option. The input directory is the fully qualified path name of an archive directory location containing the oswbb logs. The archive directory must contain the respective subdirectories--oswvmstat, oswiostat, oswps, oswtop, oswnetstat, etc. If you are running Linux or HP-UX, then additional directories are also created. It is important to note the program requires an archive directory name not an individual log directory name or individual filename.
一旦正確的java版本得到驗(yàn)證,您就可以啟動(dòng)oswbba。 oswbba需要一個(gè)輸入目錄才能運(yùn)行。 要指定輸入目錄,您必須使用-i選項(xiàng)。 輸入目錄是包含oswbb日志的歸檔目錄位置的標(biāo)準(zhǔn)路徑名。 存檔目錄必須包含相應(yīng)的子目錄 - oswvmstat,oswiostat,oswps,oswtop,oswnetstat等。如果您正在運(yùn)行Linux或HP-UX,則還會(huì)創(chuàng)建其他目錄。 需要注意的是,程序需要一個(gè)存檔目錄名稱,而不是一個(gè)單獨(dú)的日志目錄名稱或個(gè)人文件名
命令如下:
--注意這里顯示圖片需要條用X windows,所以我們要在圖形窗口中執(zhí)行:xhost +,在虛擬機(jī)終端root用戶界面執(zhí)行
[root@dbrac1]# xhost +
access control disabled, clients canconnect from any host
[root@dbrac1 ~]# su - oracle
[oracle@dbrac1 oswbb]$ pwd
/home/oracle/oswbb/oswbb
[oracle@dbrac1 oswbb]$
[oracle@dbrac1 oswbb]$ ls oswbba.jar
oswbba.jar
[oracle@dbrac1 oswbb]$
[oracle@dbrac1 oswbb]$ java -jar oswbba.jar -i /home/oracle/oswbb/oswbb/archive
輸出如下:
Starting OSWbba V8.0.0
OSWatcher Analyzer Written by Oracle Center of Expertise
Copyright (c) 2017 by Oracle Corporation
Parsing Data. Please Wait...
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 5 to Display NFS Graphs
Enter GC to Generate All CPU Gif Files
Enter GM to Generate All Memory Gif Files
Enter GD to Generate All Disk Gif Files
Enter GN to Generate All Network Gif Files
Enter GF to Generate All NFS Gif Files
Enter A to Analyze Data
Enter S to Analyze Subset of Data(Changes analysis dataset including graph time scale
Enter D to Generate Dashboard
Enter L to Specify Alternate Location of Gif Directory
Enter T to Specify Different Time Scale
Enter B to Return to Default Time scale
Enter R to Remove Currently Displayed Graphs
Enter X to Export Parsed Data to File
Enter Q to Quit Program
Please Select an Option:
2.2 Java Heap Errors on Startup:?jiǎn)?dòng)時(shí)出現(xiàn)Java堆錯(cuò)誤
oswbba parses all the archive files in memory prior to generating graphs or performing an analysis. If you have a large amount of files to parse you may need to allocate more memory in the java heap. If you experience any error messages regarding out of memory such as java.lang.OutOfMemoryError, you may have to increase the size of the java heap. To increase the size of the java heap use the -Xmx flag.
oswbba在生成圖形或執(zhí)行分析之前解析內(nèi)存中的所有歸檔文件。 如果你有大量的文件解析你可能需要在java堆中分配更多的內(nèi)存。 如果您遇到關(guān)于內(nèi)存不足(如java.lang.OutOfMemoryError)的任何錯(cuò)誤消息,則可能需要增加java堆的大小。 要增加java堆的大小,請(qǐng)使用-Xmx標(biāo)志。
$java -jar -Xmx512M oswbba.jar -i /u02/home/oswbb/archive
Starting oswbba V7.0
OSWatcher Analyzer Written by Oracle Center of Expertise
Copyright (c) 2012 by Oracle Corporation
Parsing Data. Please Wait...
2.3停止oswbba/Stopping oswbba
To stop the oswbba utility select option "Q" from the menu.
要停止oswbba實(shí)用程序,請(qǐng)從菜單中選擇選項(xiàng)"Q"。
2.4 oswbba的使用方式:
在任何情況下,oswbba都必須使用-i標(biāo)志提供存檔目錄位置
2.4.1 Using oswbba: Menu Option(菜單使用方式)
命令如下:
java -jar oswbba.jar -i
After starting oswbba, a set of options will display. Enter an option value and hit return.
啟動(dòng)oswbba后,會(huì)顯示一組選項(xiàng)。 輸入一個(gè)選項(xiàng)值并點(diǎn)擊返回
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.
這些選項(xiàng)顯示vmstat的特定CPU組件的圖形。 選項(xiàng)1顯示進(jìn)程運(yùn)行,等待和阻塞隊(duì)列。 選項(xiàng)2顯示系統(tǒng),用戶和空閑的CPU利用率圖。 選項(xiàng)3顯示上下文切換和中斷的圖形
4 This option displays memory graphs for free memory and available swap.
此選項(xiàng)顯示可用內(nèi)存和可用交換的內(nèi)存圖
5 this option displays graphs for disk i/o. 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.
此選項(xiàng)顯示磁盤(pán)I / O的圖形。 然后列出設(shè)備名稱以及每個(gè)設(shè)備的平均服務(wù)時(shí)間。 用戶然后從設(shè)備列表中選擇一個(gè)設(shè)備。 圖表可用于讀取/秒,寫(xiě)入/秒,服務(wù)時(shí)間和繁忙百分比
6 This option display nfs statistics. This option is available only on Linux and only if nfsiostat is enabled in OSWatcher
這個(gè)選項(xiàng)顯示nfs統(tǒng)計(jì)信息。 此選項(xiàng)僅在Linux上可用,且僅在OSWatcher中啟用了nfsiostat時(shí)才可用
GC Generates image files of the graphs associated with OS CPU (Option 1, 2, 3 above). These files are by default written to the gif directory but can be written to any directory by the use of Option L below.
生成與OS CPU關(guān)聯(lián)的圖形的圖像文件(上面的選項(xiàng)1,2,3)。 這些文件默認(rèn)寫(xiě)入gif目錄,但可以通過(guò)使用下面的選項(xiàng)L寫(xiě)入任何目錄。
GM Generates image files of the graphs associated with OS memory (Option 4 above). These files are by default written to the gif directory but can be written to any directory by the use of Option L below.
生成與OS內(nèi)存相關(guān)的圖形的圖像文件(上面的選項(xiàng)4)。 這些文件默認(rèn)寫(xiě)入gif目錄,但可以通過(guò)使用下面的選項(xiàng)L寫(xiě)入任何目錄。
GD Generates image files of i/o stats (Option 5 above). These files are by default written to the gif directory but can be written to any directory by the use of Option L below.
生成I / O統(tǒng)計(jì)的圖像文件(上面的選項(xiàng)5)。 這些文件默認(rèn)寫(xiě)入gif目錄,但可以通過(guò)使用下面的選項(xiàng)L寫(xiě)入任何目錄
GN Generates image files of the graphs associated with OS network (Option 5 above). These files are by default written to the gif directory but can be written to any directory by the use of Option L below.
生成與OS網(wǎng)絡(luò)相關(guān)的圖形的圖像文件(上面的選項(xiàng)5)。 這些文件默認(rèn)寫(xiě)入gif目錄,但可以通過(guò)使用下面的選項(xiàng)L寫(xiě)入任何目錄
GF Generates image files of the graphs associated with NFSIOSTAT for Linux only (Option 6 above). These files are by default written to the gif directory but can be written to any directory by the use of Option L below.
僅生成與NFSIOSTAT for Linux相關(guān)的圖形的圖像文件(上面的選項(xiàng)6)。 這些文件默認(rèn)寫(xiě)入gif目錄,但可以通過(guò)使用下面的選項(xiàng)L寫(xiě)入任何目錄
L This option allows the user to specify an alternative location to place the image and data (XLS) files.
此選項(xiàng)允許用戶指定替代位置來(lái)放置圖像和數(shù)據(jù)(XLS)文件
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 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.
默認(rèn)情況下,OSWbba解析輸入目錄中包含的所有OSWbb日志文件,默認(rèn)的圖形基于所有日志的整個(gè)時(shí)間跨度。 默認(rèn)情況下,OSWbb會(huì)將最近48小時(shí)的日志保留在歸檔中。 這意味著默認(rèn)圖形將繪制所有48小時(shí)的數(shù)據(jù)。 該選項(xiàng)允許用戶在整個(gè)集合中指定不同的時(shí)間子集。 一個(gè)例子只是繪制整個(gè)48小時(shí)收集中的2小時(shí)
B This option resets the graphing timescale back to the time encompassing the entire log collection. Please note this resets the time for graphs but does not reset the time for analysis.
該選項(xiàng)將圖表時(shí)間表重新設(shè)置為包含整個(gè)日志收集的時(shí)間。 請(qǐng)注意,這會(huì)重置圖表的時(shí)間,但不會(huì)重置分析的時(shí)間
R This option removes all graphs from the screen.
該選項(xiàng)從屏幕上刪除所有圖形。
X This option exports the analyzer parsed data to flat files that can be loaded into a spreadsheet. The exported data is written to the data subdirectory.
此選項(xiàng)將分析器分析的數(shù)據(jù)導(dǎo)出到可以加載到電子表格中的平面文件。 導(dǎo)出的數(shù)據(jù)被寫(xiě)入數(shù)據(jù)子目錄
A This option analyzes the files in the archive and produces a report.
該選項(xiàng)分析存檔中的文件并生成報(bào)告
S This option analyzes a subset of the data in the oswbb directory and produces a report in the analysis directory.
該選項(xiàng)分析oswbb目錄中的數(shù)據(jù)子集,并在分析目錄中生成報(bào)告
D Generates a responsive web page dashboard. The dashboard integrates the analyzer text base report (option A) with a menu driven interface that quickly helps identifies critical issues and provides guidance on what to look for. Selecting this option will first generate the analysis option (A) as this data is required for the dashboard option.
生成響應(yīng)式網(wǎng)頁(yè)儀表板。 儀表板將分析器文本基礎(chǔ)報(bào)告(選項(xiàng)A)與菜單驅(qū)動(dòng)的界面集成在一起,可快速識(shí)別關(guān)鍵問(wèn)題并提供關(guān)于尋找內(nèi)容的指導(dǎo)。 選擇此選項(xiàng)將首先生成分析選項(xiàng)(A),因?yàn)閮x表板選項(xiàng)需要此數(shù)據(jù)。
Q Exits the program.退出程序
2.4.2 Using oswbba: Command Line Option(命令行使用方式)
所有圖形,儀表板生成和分析選項(xiàng)都可以從命令行傳遞到oswbba。 只有-i選項(xiàng)是必需的。 使用下表來(lái)添加其他選項(xiàng):
java -jar oswbba.jar -i -P -L -6 -7 -8
Example:
java -jar oswbba.jar -i archive -6 -7 -P tuesday_crash
選項(xiàng)命令如下
The following options are supported:
-i Required. This is the input archive directory location.
-GC Same as option GC from the menu. Will generate all cpu gif files.
-GM Same as option GM from the menu. Will generate all memory gif files.
-GD Same as option GD from the menu. Will generate all disk gif files.
-GN Same as option GN from the menu. Will generate all network gif files.
-GF Same as option GF from the menu. Will generate all nfs gif files.
-S This option used with other options to identify only a subset of the data in the oswbb directory will be used for analysis.
此選項(xiàng)與其他選項(xiàng)一起使用,僅用于識(shí)別oswbb目錄中的一部分?jǐn)?shù)據(jù),將用于分析
-L User specified location of an existing directory to place any gif files or data files (xls files) generated by oswbba. This overrides the oswbba default location. This directory must pre-exist!
<位置名稱>用戶指定的現(xiàn)有目錄位置,用于放置由oswbba生成的任何gif文件或數(shù)據(jù)文件(xls文件)。 這覆蓋了oswbba的默認(rèn)位置。 這個(gè)目錄必須預(yù)先存在!
-A Same as option A above. This option analyzes the files in the archive directory and produces a report in the analysis directory. If you do not specify an analysis directory, then the files will be placed in a system generated directory name under the analysis directory. If you do not want to put the optional name make sure this is the last option on the command line.
<可選分析目錄名>與上面的選項(xiàng)A相同。 該選項(xiàng)分析歸檔目錄中的文件,并在分析目錄中生成報(bào)告。 如果不指定分析目錄,則文件將被放置在分析目錄下的系統(tǒng)生成的目錄名稱中。 如果你不想把可選的名字,確保這是命令行上的最后一個(gè)選項(xiàng)
-D Same as option D above. This option generates a dashboard (responsive web page). The dashboard integrates the analyzer text base report (option A) with a menu driven interface that quickly helps identifies critical issues and provides guidance on what to look for. Selecting this option will first also force the analysis (-A) to happen. If you do not specify an analysis directory, then the files will be placed in a system generated directory name under the analysis directory. If you do not want to put the optional name make sure this is the last option on the command line
<可選分析目錄名>與上面的選項(xiàng)D相同。 該選項(xiàng)會(huì)生成一個(gè)儀表板(響應(yīng)式網(wǎng)頁(yè))。 儀表板將分析器文本基礎(chǔ)報(bào)告(選項(xiàng)A)與菜單驅(qū)動(dòng)的界面集成在一起,可快速識(shí)別關(guān)鍵問(wèn)題并提供關(guān)于尋找內(nèi)容的指導(dǎo)。 選擇此選項(xiàng)將首先強(qiáng)制執(zhí)行分析(-A)。 如果不指定分析目錄,則文件將被放置在分析目錄下的系統(tǒng)生成的目錄名稱中。 如果你不想把可選的名字,確保這是命令行上的最后一個(gè)選項(xiàng)
-START Used with the analysis option to specify the first file located in the oswvmstat directory to analyze.
與分析選項(xiàng)一起使用,指定位于oswvmstat目錄中的第一個(gè)文件進(jìn)行分析
-STOP Used with the analysis option to specify the last file located in the oswvmstat directory to analyze.
與分析選項(xiàng)一起使用,指定位于oswvmstat目錄中的最后一個(gè)文件進(jìn)行分析
-B Same as option T from the menu. The begin time will allow the user to select a begin time from within the archive of files to graph. This overrides the default start time which is the earliest time entry in the archive directory. The format of the start time is Mon DD HH:MM:SS YYYY. (Example :Jul 25 11:58:01 2007). An invalid begin time will result in using a default value of the first timestamp in your archive.
<開(kāi)始時(shí)間>與菜單中的選項(xiàng)T相同。 開(kāi)始時(shí)間將允許用戶從文件存檔中選擇開(kāi)始時(shí)間到圖形。 這將覆蓋存檔目錄中最早時(shí)間條目的默認(rèn)開(kāi)始時(shí)間。 開(kāi)始時(shí)間的格式是Mon DD HH:MM:SS YYYY。 (例如:2007年7月25日115801)。 無(wú)效的開(kāi)始時(shí)間將導(dǎo)致在您的存檔中使用第一個(gè)時(shí)間戳的默認(rèn)值
-E Same as option T from the menu. The end time will allow the user to select an end time from within the archive of files to graph. This overrides the default end time which is the latest time entry in the archive directory. The format of the end time is Mon DD HH:MM:SS YYYY. (Example :Jul 25 11:58:01 2007).An invalid end time will result in using a default value of the last timestamp in your archive
<結(jié)束時(shí)間>與菜單中的選項(xiàng)T相同。 結(jié)束時(shí)間將允許用戶從文件存檔中選擇結(jié)束時(shí)間到圖形。 這會(huì)覆蓋歸檔目錄中最后一次輸入的默認(rèn)結(jié)束時(shí)間。 結(jié)束時(shí)間的格式是星期一夜間:MM:SS年。 (例如:7月25日115801 2007年)。無(wú)效的結(jié)束時(shí)間將導(dǎo)致您的檔案中使用上次時(shí)間戳的默認(rèn)值
2.4.3 Specifying the Begin/End Time of an Analysis (Recommended Method)指定分析的開(kāi)始/結(jié)束時(shí)間(推薦方法)
示例:
java -jar oswbba.jar -i archive -b Jan 9 13:15:00 2013 -e Jan 19 13:30:00 2013 -A
2.4.4 Limiting the Analysis to a Subset of Files in Your Archive (Old method) 將分析限制為存檔中文件的子集(舊方法)
示例:
java -jar oswbba.jar -i archive -START coesrv40.us.oracle.com_vmstat_13.01.09.1300.dat -STOP coesrv40.us.oracle.com_vmstat_13.01.09.2000.dat -s
2.4.5 Ignoring Specific Directories From Analysis忽略來(lái)自分析的特定目錄
示例:
java -jar oswbba.jar -i archive -NO_NETSTAT -NO_IOSTAT
可選項(xiàng)如下:
-NO_IOSTAT Ignores files in the oswiostat directory from analysis.
-NO_TOP Ignores files in the oswtop directory from analysis.
-NO_PS Ignores files in the oswps directory from analysis.
-NO_NETSTAT Ignores files in the oswnetstat directory from analysis.
-NO_LINUX Ignores files in the oswmeminfo directory from analysis.
-MEM_ALL Analyzes virtual and resident memory allocations for all processes. This is very resource intensive.
2.4.6 Generating a Dashboard 生成儀表板
步驟如下:
1. Select option (D) from them menu. This generates the dashboard
2. cd to the analysis directory
3. Locate the analysis directory generated in step 1
4. cd into the specific analysis directory
5. Inside the specific analysis directory there will be
a. single analysis.txt file
b. directory named dashboard
6. cd into the dashboard directory
7. Inside the dashboard directory there will be
a. index.html (This is the dashboard). Open this file with a browser
b. css directory containing cascading style sheets used by the dashboard
c. fonts directory containing fonts used by the dashboard
d. generated_files directory containing gifs that were generated and used by the dashboard
e. images directory containing misc images used by the dashboard
f. js directory containing javascript used by the dashboard
三、配置oswbb自啟
目的是重啟主機(jī)使oswbb重新拉起工作收集信息
方法一:配置crontab
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/oracle/dba/check_oswbb.sh >/dev/null 2>&1
[oracle:/home/oracle]$cat /home/oracle/dba/check_oswbb.sh
#!/bin/sh
. /home/oracle/.profile
osw_p=`ps -ef|grep -i "OSWatcher"|grep -v "grep"|wc -l`;
if [ $osw_p -eq 0 ];
then
cd /oracle/dba/oswbb
nohup ./startOSWbb.sh 15 168 gzip &
fi
[oracle:/home/oracle]$
方法二:MOS:USing oswatcher RPM Package on Oracle Linux (文檔 ID 2290852.1)
以上是“Oracle OS Watcher 工具怎么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
網(wǎng)站題目:OracleOSWatcher工具怎么用
文章鏈接:http://chinadenli.net/article2/pigpoc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷(xiāo)型網(wǎng)站建設(shè)、做網(wǎng)站、ChatGPT、品牌網(wǎng)站設(shè)計(jì)、定制網(wǎng)站、
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)