wood burning stoves 2.0*
The moose likes Java in General and the fly likes how remote monitoring works -- without any agents at remote machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how remote monitoring works -- without any agents at remote machine" Watch "how remote monitoring works -- without any agents at remote machine" New topic
Author

how remote monitoring works -- without any agents at remote machine

B Prakasam
Greenhorn

Joined: Mar 02, 2004
Posts: 6
Using JAVA, Is there any way to execute a system level command on the remote machine and get back the data to the host machine.
It should work something like this, my application resides on Windows, and it should send a system command to the remote machine (Solaris) like vmstat and getback the resultant output to my application. This should be achieved without installing any agents at the remote machines.
I believe if the remote server has 'rstatd' server (rstat Daemon) running, using a client program we can query the system information thru it, without installing any thing on the other side.
Any idea on how to query 'rstatd' server from the client.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Runtime.getRuntime().exec ("Your command here");
But you have to redirect System.out/ System.in, to get the feedback, to parse.


http://home.arcor.de/hirnstrom/bewerbung
B Prakasam
Greenhorn

Joined: Mar 02, 2004
Posts: 6
yes you are correct, we can use Runtime to execute a system command, but my question is how to make a rpc to rstatd in solaris to get some system resource information.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I keep handing out pointers to this little project hoping someone will finish it for me It definitely requires an agent - a little socket server - on the other end, tho.
http://www.surfscranton.com/architecture/CmdServer.htm


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
B Prakasam
Greenhorn

Joined: Mar 02, 2004
Posts: 6
hi Stan James, Thanks for the site reference, too usefull. but it would be much more helpfull if i do that using rpc.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
who do you want to spy on or hack their machines?


42
B Prakasam
Greenhorn

Joined: Mar 02, 2004
Posts: 6
no Jeroen Wenting,you mis-understood. i am a genuine software developer. i am trying to write an applycation to monitor solaris server without disturbing the server. if u aware of mercury's loadrunner testing tool, their they use this tech to monitor the machines. but they DONT use java. So I am trying to do that in java.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
OK, just that I've seen way too many such requests from people wanting to know techniques to install trojans and spying tools without the knowledge of their victims...
Most loadtesting tools send network requests to known services running on the target machine and determine the load on the machine based on the response time.
Others require installation a small background process on the target machine that unobstrusively collects the data and on being polled transmits it to the requester (after authentication of course).
 
wood burning stoves
 
subject: how remote monitoring works -- without any agents at remote machine
 
Similar Threads
000-341 sample test questions
Deploying from WSSD
client/server database?
Desktop Sharing Application
Deploying the application client of the jee application