Sponsored Content
Full Discussion: How to get jboss pid?
Operating Systems Linux Red Hat How to get jboss pid? Post 302447609 by pbsdis on Monday 23rd of August 2010 08:14:11 PM
Old 08-23-2010
How to get jboss pid?

I am writing SSH (actually Python via SSH) commandline to get jboss PID from a remote machine (Redhat), how can I do it?

I usually have the patten like:

run('some_linux_command')

What should be 'some_linux_comand' be here?

I also tried a shell script (I found in internet) local on the machine

Quote:
#!/bin/sh
PID=$(ps -eo pid,comm | awk '$2=="jboss" {print $2}')
echo $PID
if [ -z "$PID"]; then
echo No Jboss running
else
echo All done
fi
But it return nothing, while I used 'ps -ef | grep jboss' returned information with the PID.

Any idea?
 

10 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

3. UNIX for Advanced & Expert Users

jboss and websphere monitoring scripts for hobbit

HI, A very good morning.... i need extensions/plugins for monitoring jboss and websphere for hobbit.. kindly if any one has the ext. or associated scripts pls send me the script or the link from where i can download the scripts(and any dependency for those scripts). Await ur reply.. ... (0 Replies)
Discussion started by: suvra
0 Replies

4. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

5. Red Hat

JBoss Application Server 5 CR1 available

The first candidate release (CR1) for JBoss Application Server 5 has been released. There is a lot of good background from Sacha Labourey and feature details from project lead Dimitris Andreadis. Now that version 5 of the new application server has been through alpha and beta stages, this... (0 Replies)
Discussion started by: Linux Bot
0 Replies

6. AIX

Creating startup service for JBoss

Hello Friends, Does anyone know how to create a startup script for Jboss on IBM AIX 5.3? Please help me, I'd be highly grateful to you... Thanks & Regards, Vinit (0 Replies)
Discussion started by: vpatil6688
0 Replies

7. AIX

Installing jboss on aix

Hi, anybody knows how to configure and install jboss on aix. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

8. UNIX and Linux Applications

Jboss Stop Issue

Hello Everybody, I have recently setup a Jboss-4.2.3 server in a RHEL machine.I copied the "/etc/init.d/jboss" script from another Jboss server and added the same to chkconfig. When i run - "service jboss start" - the Jboss server starts fine. However when i run - "service jboss stop" - it... (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies

9. Shell Programming and Scripting

Recycle Jboss server script

Hello, I need help writing a script to restart our Jboss server when it crashes. I am not very good with scripting but here is the basics. 1) I'm hoping to use KornShell 2) The command to stop the Jboss is "/var/opt/HP/ALM/jboss/bin/run.sh stop" 3) I want to verify the jboss is stopped before... (1 Reply)
Discussion started by: Blogger11
1 Replies

10. Web Development

Starting Web Application on Jboss

Hello, I installed Jboss EAP 6 on a remote Linux server in standalone mode, and deployed a HelloWorld war file successfully. Opened a browser on my PC and pointed to http://127.0.0.1:8080/filename. I can see “Hello World!” on my browser. However, if the browser points to http://server's... (3 Replies)
Discussion started by: learnix
3 Replies
WATCH-MULTIPLE-MIMDEFANGS(8)				      System Manager's Manual				      WATCH-MULTIPLE-MIMDEFANGS(8)

NAME
watch-multiple-mimdefangs.tcl - Keep an eye on a cluster of MIMEDefang machines SYNOPSIS
watch-multiple-mimdefangs.tcl [-archive] machine-1 machine-2 ... machine-N DESCRIPTION
watch-multiple-mimdefangs.tcl is a Tk script that graphically displays the status of mimedefang-multiplexor(8) on a cluster of machines. Note that Tcl/Tk 8.4 or higher is required to run watch-multiple-mimdefangs.tcl. If you supply the -archive command-line option, then watch-multiple-mimdefangs.tcl logs the output of md-mx-ctrl rawload for each machine. The output for machine_name is logged in: $HOME/.watch-multiple-mimedefangs/machine_name/data. PREREQUISITES
To use watch-multiple-mimdefangs.tcl to monitor a cluster of machines, you need the following prerequisites: o A UNIX-like machine with Tcl/Tk 8.4, the X window system and an SSH client. You also need "xterm" to use some of the features. o The ability to SSH as root to all of the machines you want to monitor. Ideally, you should be using the SSH agent so that you can SSH to the monitored machines as root without being prompted for a password or pass phrase. o The program md-mx-ctrl on root's path on all the machines you want to monitor. DISPLAY
For each machine specified on the command line, watch-multiple-mimdefangs.tcl creates a chart with five columns. The columns are: o A button with the name of the machine. Clicking the button pops up a menu that lets you take various actions, as described later. If all slaves on the machine are busy, the button turns yellow. o A label showing the number of busy slaves in the form "busy/total", where total is the total number of slaves. o A label showing the average number of messages per second over the last 10 seconds. o A label showing the average number of milliseconds per scan over the last 10 seconds. o A chart that graphs the average number of busy slaves, the average number of messages per second and the average scan time in mil- liseconds, all averaged over the last 10 seconds. MACHINE MENU
If you click on a machine name, a menu with three options pops up: SSH Open an xterm session and ssh as root to the machine. Busy Slaves Monitor the busy slaves on the machine. If you click on the process-ID of a slave, an xterm will open up and the command "strace -s 100 -t -p pid" will be executed on the remote machine. This is Linux-specific, but you can edit watch-multiple-mimdefangs.tcl to replace the command with your particular system's command for tracing system calls. Delete Remove the machine from the list of machines being monitored. ADDING A MACHINE
If you need to add a machine to the display, simply type the name of the machine in the "Add Machine:" box and press Enter. AUTHOR
watch-multiple-mimdefangs.tcl was written by David F. Skoll. SEE ALSO
mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), md-mx-ctrl(8), watch-mimedefang(8) 4th Berkeley Distribution 12 January 2007 WATCH-MULTIPLE-MIMDEFANGS(8)
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy