Posted 2012-03-29 01:46 by Joe
list-processes.pl
List or find running processes on some systems
This command lists all running processes on the systems you select,
specified by the standard optons (--host,
--type and so on).
Alternately,
it can limit output to processes matching some pattern specified with the --match flag.
Example usage
cloudmin list-processes --host xencentos.home --match httpd PID User Command -------- ---------------- --------------------------------------------------- 926 root /usr/sbin/httpd 927 apache /usr/sbin/httpd 964 apache /usr/sbin/httpd 965 apache /usr/sbin/httpd
When multiple systems are specified, the output from each is preceeded by the hostname.
cloudmin list-processes --host xencentos.home --host suntec.home --match httpd xencentos.home: PID User Command -------- ---------------- --------------------------------------------------- 926 root /usr/sbin/httpd 927 apache /usr/sbin/httpd suntec.home: PID User Command -------- ---------------- --------------------------------------------------- 697 nobody /usr/apache/bin/httpd 1223 nobody /opt/csw/apache2/sbin/httpd -k start
Command Line Help
cloudmin list-processes [--all-hosts] | [--host name]*
[--group name]*
[--type real|kvm|this]*
[--os oscode]*
[--owner name]*
[--match regexp]
[--status status-code|"up"|"wm"|"bad"]
[--host-on name]
