How to get the running program information of remote computers?
1 Attachment(s)
I am a R user. I want to know whether remote computers are running R or not.
PROBLEM: How to know whether R program is running, and redirect the host which is running R to a file? I want to check the COMMAND column contains R. What should I do? Here is the picture of "top" when running R programs(parallel). |
Have you considered using SNMP?
The names of all running processes are exposed as leaves under the hrSWRunName node (numeric OID 1.3.6.1.2.1.25.4.2.1.2). Something as simple as: Code:
snmpwalk -v 1 -c <community_name> <ip_address> .1.3.6.1.2.1.25.4.2.1.2 | grep STRING:\ \"R\" Quote:
|
Quote:
Code:
host_list="/home/campus27/zwang10/Desktop/cluster/program/hostlist" I am using tcsh. |
All times are GMT -5. The time now is 02:14 AM. |