Starts the concurrent daemon for the Distributed System Management Interface Tool (DSMIT).
crex [ -w Machine [ ,Machine ] ... ] [ -W Domain [ ,Domain ] ... ] Command
Note: Add a space after the -w and -W flags. Do not put a space between the comma and multiple values for the Machine or Domain parameters. If the Command includes any spaces, then the Command must be enclosed in double quotes (").
The crex command allows you to bypass the DSMIT interface by entering commands at the command line. The command is sent to all the machines specified in concurrent mode. To send commands to machines specified in sequential mode, see the srex command.
Note: If the command contains any reserved shell characters such as a single quote ('), ampersand (&), or pipe symbol (|), use double quotes to enclose the command. If the command contains double quotes ("), use single quotes to enclose the command.
To use the crex command, you must have your system configured correctly as a DSMIT server. To learn more about DSMIT and configuring your system, see "Distributed System Management Interface Tool (DSMIT) Overview," in Distributed SMIT 2.2 for AIX: Guide and Reference.
Note: Do not use the crex command with interactive commands such as passwd or full-screen commands such as diag. To run interactive commands, use the srex command.
The crex command can be used for a fast fan-out of commands. For example, suppose that A, B, and C are DSMIT managing machines and that B and C are connected by a slow communication line. A domain of managed machines (Domain_B) is on a LAN together with machine B, and a domain of managed machines (Domain_C) is on a LAN together with machine C. To use managing machine A to execute a non-interactive command on the managed machines in Domain_B and Domain_C, follow these steps:
srex -w B,C dsmit-login
crex -w B "crex -W Domain_B rmuser davis" crex -w C "crex -W Domain_C rmuser davis"
Note: Alternatively, you could run crex -w B,C "crex -W Domain_B rmuser davis","crex -W Domain_C rmuser davis"
|Specifies the machines to be in the working collective.
|Specifies the domains to be in the working collective.
Access Control: You must be a registered DSMIT administrator to run this command.
crex -W Domain "netstat -rn" > network_infoThe network data is saved in network_info within the current directory.
crex -w Machine -W Domain 'lsuser -a id ALL | grep -e "host" -e "guest"'
crex -w Machine_A,Machine_B "rmuser adam","rmuser davis"DSMIT matches the first command with the first machine, the second command with the second machine, and so on.
|Contains the list of domains used by DSMIT.
|Contains the list of operating systems of DSMIT clients.
|Contains the list of machines with DSMIT installed that can run commands built by the DSMIT server.
|Stores the local machine's unique DSMIT principal key.
|Stores the DSMIT administrator's keys
|Stores intermediate keys used by the managing systems.
|Stores the managed machine's DSMIT principal keys.
|Stores the name of the DSMIT configuration file server.
The srex command, dsmit command.
Distributed System Management Interface Tool (DSMIT) Overview in the Distributed SMIT 2.2 for AIX: Guide and Reference.