Checking running process status using "grep" on multiple servers in load sharing system.
Suppose i have 3 different servers say x,y and z.
Im running some process say ABC and 40 instances for the same is being created.
In load sharing suppose on
server x, 20 instances are running
server y, 10 instances are running
server z, 10 instances are running.
While checking the running status on server z, using command ps -ef | grep ABC |wc -l
it shows 10 instances. Is there any way to get the count of instances running on servers x and y on server z.
if i run command on server z
it shows me 40 instances.
Thanx in advance.
Last edited by Franklin52; 02-19-2013 at 03:59 AM..
Reason: Please use code tags for data and code samples
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Hello Experts,
Can any one help me out to find the command to get "count" of number of processes running in system.
Basically i want to write one crone job to kill some process which making my system hanged. so have to do following things.
1) Find out the number of processes is running.... (4 Replies)
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Hello Experts
I have M4000 Solaris 10 server, from few many days there are too many sendmail and mail.local process starting on server and each time i need to kill mannualy using pkill send mail, some time there will 600 of them taking 30mb memory for each and hence slowing down the server,... (2 Replies)
Hi,
I have one question regarding the understanding of “load average” in a platform with virtual processors.
Suppose in this situation:
Total number of physical processors: 1
Number of virtual processors: 32
Total number of cores: 4
Number of cores per physical... (1 Reply)
Hello Anyone:
I have run into an issue that I have never seen or heard of.
Recently on a specific server I have encountered a random issue that I've not been able to repliate on demand... When I view the processes status of a certain process, the information returned to the screen has a... (2 Replies)
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Team,
I would like to know, if we have any command in Solaris to verify, if some process is listening on a port on a set of machines.
for eg: Wrote the below script, and found that when a process is listening on that port, then it just waits there and doesnt come out. Rather, I would like... (6 Replies)
Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information.
Any info would be appreciated!
Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies
LEARN ABOUT DEBIAN
loadwatch
LOADWATCH(1) General Commands Manual LOADWATCH(1)NAME
loadwatch - run a program when machine is idle
SYNOPSIS
loadwatch [options] -p pid | [--] prog [args]
DESCRIPTION
loadwatch either spawns a child process prog with the arguments args and controls it with all its process group, or takes control of an
already running process with pid pid with all its process group.
loadwatch allows the controlled processes to run while the load average remains below high_limit. Every delay seconds, loadwatch checks the
load average. If the load is above high_limit, the child is suspended; the child is resumed when the load falls below low_limit.
OPTIONS
A summary of options is included below.
-h high_limit
A decimal value that sets the system load at which the child process will be suspended. (Default: 1.25)
-l low_limit
A decimal value that sets the system load at which the child process will be resumed. (Default: 0.25)
-d delay
An integral number of seconds that sets how often the system load will be checked. (Default: 10)
-n copies
An integer value that sets the number of copies of prog to run. (Default: 1)
-u file
Create a UNIX domain socket file for use by lw-ctl.
-p pid The pid of the program that should be controlled by loadwatch (with all its process group).
SEE ALSO lw-ctl(1), nice(1)BUGS
You should choose low_limit and high_limit carefully. When the load drops below low_limit, the process(es) will be resumed, and it should
not, by itself, cause the load to raise above high_limit, or the whole will oscillate, periodically suspending and resuming the
process(es).
Similarly, if several instances of loadwatch are running, they may resume their processes at the same time, leading to oscillations if the
limits are not carefully chosen. Hence, each instance of loadwatch affects every other instance on the computer, and should not be consid-
ered in isolation.
AUTHOR
This manual page was written by Dale E. Martin <dmartin@debian.org>, for the Debian GNU/Linux system (but may be used by others). It was
then updated by Nicolas Boullis <nboullis@debian.org>.
July 2003 LOADWATCH(1)