Sponsored Content
Full Discussion: Script to monitor IOwait
Top Forums Shell Programming and Scripting Script to monitor IOwait Post 302731301 by ctsgnb on Wednesday 14th of November 2012 06:23:06 PM
Old 11-14-2012
Does your OS have the command "watch" ?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

excessive IOWAIT

i have a server constantly have high iowait, but i am not able to tell which process generate the most of io. none commands, such as iostat, sar, top will give me this kind of information. hope there is some command can help me to spot the process generate the most of io let to know input... (1 Reply)
Discussion started by: giantpanda77
1 Replies

2. UNIX for Advanced & Expert Users

How to reduce IOWAIT in linux

Hi All, Any ideas how to reduce IOWAIT and increase disk speed on Linux server. Server has 4 CPUs and with 8GB RAM. Thanks in advance, Regards, Bache (3 Replies)
Discussion started by: bache_gowda
3 Replies

3. Linux

how to trace iowait to a certain process

Hi all, Under top command you could see some iowait output. Is any way to locate which process(s) is causing the high percentage of iowait? 17:48:39 up 19 days, 18:54, 3 users, load average: 3.24, 3.14, 3.17 392 processes: 389 sleeping, 1 running, 2 zombie, 0 stopped CPU states: cpu user... (3 Replies)
Discussion started by: will_mike
3 Replies

4. Shell Programming and Scripting

Monitor script

Does anyone have a monitoring script in solaris that monitors the drives in an exclosure? The script should be in /bin/bash or /bin/sh thnks again This should be for solaris 10/11 looking for something that tells me a drive is down or offline.:confused: (0 Replies)
Discussion started by: walnutpony123
0 Replies

5. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

6. UNIX for Dummies Questions & Answers

Monitor a script

Hi All, In a script I would like to check whether the current running command is completed in 1 hour or not. This i want to achieve inside the same script. I don't want to use separate script to monitor my current running script. eg. pseudocode; Command1 if command1>60 mins then... (7 Replies)
Discussion started by: Vicky5
7 Replies

7. Shell Programming and Scripting

How to monitor a shell script called within a script?

HIi Guys... I am in a fix.... 1st the code : Script 123.sh looks like this : ./abc # a script which is getting called in this script while true do count=`ps -ef | grep abc | wc -l` if echo "abc is running sleep 10 fi done but the process is getting checked... (5 Replies)
Discussion started by: chatwithsaurav
5 Replies

8. Infrastructure Monitoring

Searching for Saas Monitor service which monitor my servers which are sitting in different providers

Sorry if this is the wrong forum Searching for Saas Monitor service which monitor my servers which are sitting in different providers . This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard. The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies

9. UNIX for Advanced & Expert Users

Script monitor website wth default tomcat script

Hi all, on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5, and the timewait to 120 second, so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
watch(n)						       BLT Built-In Commands							  watch(n)

__________________________________________________________________________________________________________________________________________________

NAME
watch - call Tcl procedures before and after each command SYNOPSIS
watch create watchName ?options? watch activate watchName watch deactivate watchName watch delete watchName watch configure watchName ?options watch info watchName watch names _________________________________________________________________ DESCRIPTION
The watch command arranges for Tcl procedures to be invoked before and after the execution of each Tcl command. INTRODUCTION
When an error occurs in Tcl, the global variable errorInfo will contain a stack-trace of the active procedures when the error occured. Sometimes, however, the stack trace is insufficient. You may need to know exactly where in the program's execution the error occured. In cases like this, a more general tracing facility would be useful. The watch command lets you designate Tcl procedures to be invoked before and after the execution of each Tcl command. This means you can display the command line and its results for each command as it executes. Another use is to profile your Tcl commands. You can profile any Tcl command (like if and set), not just Tcl procedures. EXAMPLE
The following example use watch to trace Tcl commands (printing to standard error) both before and after they are executed. proc preCmd { level command argv } { set name [lindex $argv 0] puts stderr "$level $name => $command" } proc postCmd { level command argv retcode results } { set name [lindex $argv 0] puts stderr "$level $name => $argv0= ($retcode) $results" } watch create trace -postcmd postCmd -precmd preCmd OPERATIONS
The following operations are available for the watch command: watch activate watchName Activates the watch, causing Tcl commands the be traced to the maximum depth selected. watch create watchName ?options?... Creates a new watch watchName. It's an error if another watch watchName already exists and an error message will be returned. Options may have any of the values accepted by the watch configure command. This command returns the empty string. watch configure watchName ?options...? Queries or modifies the configuration options of the watch watchName. WatchName is the name of a watch. Options may have any of the following values: -active boolean Specifies if the watch is active. By default, watches are active when created. -postcmd string Specifies a Tcl procedure to be called immediately after each Tcl command. String is name of a Tcl procedure and any extra arguments to be passed to it. Before string is invoked, five more arguments are appended: 1) the current level 2) the cur- rent command line 3) a list containing the command after substitutions and split into words 4) the return code of the com- mand, and 5) the results of the command. The return status of the postcmd procedure is always ignored. -precmd string Specifies a Tcl procedure to be called immediately before each Tcl command. String is name of a Tcl procedure and any extra arguments to be passed to it. Before string is invoked, three arguments are appended: 1) the current level 2) the current command line, and 3) a list containing the command after substitutions and split into words. The return status of the -precmd procedure is always ignored. -maxlevel number Specifies the maximum evaluation depth to watch Tcl commands. The default maximum level is 10000. watch deactivate watchName Deactivates the watch. The -precmd and -postcmd procedures will no longer be invoked. watch info watchName Returns the configuration information associated with the watch watchName. WatchName is the name of a watch. watch names ?state? Lists the names of the watches for a given state. State may be one of the following: active, idle, or ignore. If a state argument isn't specified, all watches are listed. KEYWORDS
debug, profile BLT
2.4 watch(n)
All times are GMT -4. The time now is 11:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy