executes a task on a set of hosts
Executes a task on the specified hosts. lsgrun is useful for fast global operations such as starting daemons, replicating files to or from local disks, looking for processes running on all hosts, checking who is logged in on each host, and so on. The hosts can be specified using a host file, a list of host names or by letting the system select the hosts. If LSB_DISABLE_LIMLOCK_EXCL=y (to enable preemption of exclusive jobs, for example), you can use lsgrun to start a task on hosts that are currently running exclusive jobs.
The specified task is executed sequentially on hosts with full pseudo tty support.
LSF uses as many processors as available to run the specified task.
The prompt Command> is displayed to allow users to type in a command (task) terminated by a CTRL-D or EOF. The command is then executed on the specified hosts.
Interactive operation mode. You are asked whether the task is to be executed on all hosts. If you answer y, the task is started on all specified hosts; otherwise, you are asked to specify hosts interactively.
Creates a pseudo-terminal on UNIX hosts. This is necessary to run programs requiring a pseudo-terminal (for example, vi).
Parallel run mode. Executes the task on all hosts simultaneously and without pseudo tty support.
If this option is specified and the -P option is specified, the -P option is ignored.
This option is useful for fast start-up of tasks. However, any output from remote tasks arrive at the terminal in arbitrary order, depending on task execution speeds on individual hosts.
Creates a pseudo-terminal with shell mode support on UNIX hosts.
Shell mode support is required for running interactive shells or applications that redefine the CTRL-C and CTRL-Z keys (such as jove).
Verbose mode. Displays the name of the host or hosts running the task.
Either -f host_file, -m host_name or -n num_processors is required.
Executes the task on all hosts listed in the host_file.
Specify a file that contains a list of host names. Host names must be separated by white space characters (for example, SPACE, TAB, and NEWLINE).
Either -f host_file, -m host_name or -n num_processors is required.
Executes the task on all specified hosts.
Specify hosts on which to execute the task. If multiple host names are specified, the host names must be enclosed by " or ' and separated by white space.
Either -f host_file, -m host_name or -n num_hosts is required.
Executes the task in a cluster with the required number of available hosts.
One host may be used to start several tasks if the host is multiprocessor. This option can be used together with option -R to select desired hosts.
Executes the task on hosts with the required resource requirements.
Specify the resource requirement expression for host selection. The resource requirement is used to choose from all hosts with the same host type as the local host, unless a "type == value" exists in res_req to specify otherwise.
This option can be used together with option -n to choose a specified number of processors to run the task.
lsgrun -R "bigmem" myjob
If the -m option is specified with a single host name, the -R option is ignored.
Specify the command to execute. This must be the last argument on the command line.