cwall.1m (2012 03)
c
cwall(1M) cwall(1M)
NAME
cwall - Displays a wall(1M) broadcast message on multiple hosts. cwall is part of the Distributed Systems
Administration Utilities (DSAU).
SYNOPSIS
Path: /opt/dsau/bin/cwall
cwall [command fanout options][-g | --groupname groupname][filename]
cwall {-h | --help | ? }
cwall {-V | --version}
DESCRIPTION
cwall distributes wall(1M) broadcast messages to multiple hosts. In a Serviceguard cluster, the mes-
sages are displayed on all cluster members by default. When not in a cluster, host options must be
specified or else cwall defaults to displaying the message for only the local host.
wall messages are broadcast messages displayed on the terminals of all logged-in users. Users can
block the receipt of broadcast messages using
mesg(1). The -g or --groupname options send the mes-
sage only to members of the specified group in /etc/groups.
REMOTE COMMAND TRANSPORT OPTIONS
You can select how
cwall connects to target systems at runtime using the -R option. ssh is the default
transport. The following protocols are supported:
• rsh :
Uses an internal, thread-safe implementation of BSD
rcmd(3) to run commands using the
standard
rsh(1) protocol.
•
ssh (default):
Uses a variant of
popen(3) to run multiple copies of the ssh(1) command.
Options
-a
cwall reads the /etc/machines file to obtain the list of nodes. This option has no arguments.
Note that /etc/machines is not shipped by default and can be created on a per-host basis. The
format for the /etc/machines file is the same as that for the --hostsfile described below.
-f | --hostsfile filename
Runs the commands listed in filename on all nodes listed in hostsfile. The specified files should
contain a list of target hosts, one per line. Hostlist specifications are valid. See HOSTLIST
EXPRESSIONS below.
--fanout number
Set the fanout width, the maximum number of simultaneous remote commands, to number.
For example, with 100 hosts and
--fanout of 10, DSAU contacts 10 hosts at a time.
-g | --groupname groupname
Display the message only to members of the specified group in /etc/groups.
-h | --help
Display command help and quit.
-l | --list List valid signal names.
-n | -w | --nodes host1,host2,...
Target the specified list of hosts. No spaces are allowed in the comma-separated list. The host
list may contain hostlist expressions such as ‘‘host[1-5,7]’’. For more information about the
hostlist format, see the HOSTLIST EXPRESSIONS section below. This option overrides all
other host specification options.
-R | --rcmd {rsh | ssh}
Set remote command transport to rsh or ssh.
-t | --timeout seconds
Set the connect timeout in seconds.
-u | --ctime seconds
Set a limit on the amount of time a remote command is allowed to execute. Default is no limit.
HP-UX 11i Version 3: March 2012 − 1 − Hewlett-Packard Company 1