12-10-2009
how to check all the applications are in cluster using shell script
Hi
I have an application running in four different node.The server is tomcat.Each node in each tomcat server.How do i check whether all the nodes are in cluster using shell script.
any command to check this would be of great use.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to create an automated script which is called by another maually executed script.
The condition is that the no one should be able to manually execute the automated script.
The automated script can be on the same machine or it can be on a remote machine.
Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies
2. Shell Programming and Scripting
Hello all.
I have built a cluster of 9 Macs for computational chemistry and I need a shell script that I can use from one computer to all the rest to shutdown.
I have modified all of the Macs so that there is pass-wordless ssh. As well, I have modified each "visudo" file on each machine by... (1 Reply)
Discussion started by: marcozd
1 Replies
3. Shell Programming and Scripting
hi guys have this little problem, need some help from script gurus.
basically I'm running hpux cmviewcl command, cmviewcl command will produce
db1pkg up running enabled box1
my script
PSV='box1'
STAT='up'
check_db1pkg()
{
# assign cmviewcl output... (2 Replies)
Discussion started by: sparcguy
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
im connecting to a datacenter remotely. is there a command to know if the server is on a cluster?
i want to know the command to use in these OS(hp-ux,solaris,linux)
Thanks (6 Replies)
Discussion started by: jinslick25
6 Replies
5. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
6. Linux
I am working on a Linux server and want to check the cluster status. I dont know how many server is in cluster and what is the command to check. could you please help me to get the cluster status? (4 Replies)
Discussion started by: anshu ranjan
4 Replies
7. AIX
Hello,
- How do I know if a filesystem is part of a cluster?
- Or do I have to check if the vg related to the fs is part of a cluster instead? if so, how do I check it?
- I would also need to check if there are vxfs type inside aix machines and if there are, how do I know if that type of... (2 Replies)
Discussion started by: asanchez
2 Replies
8. High Performance Computing
Hello Everybody,
I have few queries :
Do you have any idea how to check the performance of HPC cluster having mpich on top of centos 6.2?
Are there any standard programs (like FFT, graphics rendering etc) to check the performance of mpi cluster with single node and multiple nodes?
Can we... (4 Replies)
Discussion started by: albertspade
4 Replies
9. Shell Programming and Scripting
Hi,
I am relatively new to the cluster administration and shell scripting. I need help on a shell script which can help me determine how many cpu's over time, any particular ( or all registered users on a cluster ) are using. To generate data say over a period of week and list of users and their... (6 Replies)
Discussion started by: anuj06
6 Replies
10. Shell Programming and Scripting
hi guys
we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies
cmdo(1m) cmdo(1m)
NAME
cmdo - Execute process on multiple remote Serviceguard nodes.
SYNOPSIS
cmdo [[-n node_name]...] [-t timeout] command
DESCRIPTION
cmdo will execute a process on a multiple remote Serviceguard nodes and return any output or return value.
cmdo is limited in several ways. cmdo is best suited for situations where other remote execution facilities are not available. For a more
full featured tool for remote execution within a cluster, see cexec(1m) provided by Distributed Systems Administration Utilities.
To use this command, the local user must have the root access role on each of the involved nodes. For more information on Serviceguard
access control policies, see the manual, Managing Serviceguard.
To use the cmdo command without specifying -n options, the local node must be configured into a Serviceguard cluster. If no -n options are
specified, the command will be executed on all available nodes in the cluster.
The command will be executed in an environment which matches the local node. All environment variables defined locally will be available
on the remote node.
Output from stderr and stdout for the remote process will be combined and delivered in one transmission. This command should not be used
for interactive commands or commands which will return large quantities of output. Output from each node will be displayed sequentially as
the operation is executed on each remote node.
Input via stdin is not supported.
Killing the cmdo process does not stop any remote executions of the command. cmdo should not be used on any command which may hang without
specifying a timeout value.
Options And Arguments
-t timeout
Kill the executed command if it does not exit within the specified timeout (in seconds)
-n node_name
Serviceguard node to execute command on. If no -n options are specified, all the nodes configured in the cluster are used.
command
Command to execute on remote node. May be quoted.
RETURN VALUE
cmdo returns the following values:
0 Successful completed on all nodes.
>0 Command failed on one or more nodes with the specified exit value.
EXAMPLES
Execute an 'ls' in a remote directory on all nodes within the cluster.
cmdo ls /tmp
Execute an 'ls' in a remote directory on two nodes not configured within a Serviceguard cluster.
cmdo -n node1 -n node2 ls /tmp
AUTHOR
cmdo was developed by HP.
SEE ALSO
cexec(1m), cmcp(1m), cmexec(1m), cmsync(1m), cmquerycl(1m), cmviewcl(1m)
Requires Optional Serviceguard Software cmdo(1m)