cps.1 (2012 03)
c
cps(1) cps(1)
NAME
cps - View processes from multiple hosts. cps is part of the Distributed Systems Administration Utilities
(DSAU).
SYNOPSIS
Path: /opt/dsau/bin/cps
cps [cps options]{-a | -e }[other ps options]
cps [--help ]
cps [--version ]
DESCRIPTION
Displays processes from multiple hosts; defaults to work cluster-wide in a Serviceguard cluster. When
not in a Serviceguard cluster, defaults to issuing commands on the local host.
cps accepts all arguments
of ps. You must pass the ps(1) command’s -a or -e option to cps. For additional information, see the
ps(1) manpage.
REMOTE COMMAND TRANSPORT OPTIONS
The user selects how
cps runs commands on remote hosts at runtime using the -R option. The protocols
listed below are supported; the default command transport is ssh.
• rsh
Uses an internal, thread-safe implementation of BSD
rcmd(3) to run commands using the
standard rsh(1) protocol.
• ssh
Uses a variant of
popen(3) to run multiple copies of the ssh(1) command.
Standard cps
Options
--nodes host1,host2,...
Target the specified list of hosts. No spaces are allowed in the comma-separated list. The host
list may contain hostlist hostlist expressions of the form "host[1-5,7]." For more information
about the hostlist format, see the HOSTLIST EXPRESSIONS section below. This option over-
rides all other host specification options.
--exclude host1,host2,...
Target the specified list of hosts.In a Serviceguard cluster, this option is not required and the
default is all cluster members.
The host list may contain hostlist expressions of the form "host[1-5,7]" . For more information
about the hostlist format, see the HOSTLIST EXPRESSIONS section below.
Other Options
Note: Pass standard ps options after cps options. All cps options are specified in "long option" form
(preceded by --) to differentiate them from ps options. See EXAMPLES for details.
In addition to all
ps options, the following are valid:
--fanout number
Sets the maximum number of simultaneous remote commands to number. The default is 64.
--help Displays help on command options and quits.
--rcmd moduleName
Set remote command transport options module to moduleName, where moduleName is ssh or
rsh.
--timeout seconds
Sets the connect timeout in seconds.
--ctime seconds
Sets a limit on the amount of time a remote command is allowed to execute. Default is no
limit.
--version Shows the version of
cps.
HP-UX 11i Version 3: March 2012 − 1 − Hewlett-Packard Company 1