25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Host Redirection<br />

Host Redirection<br />

Examples<br />

@ character<br />

Host redirection overrides the task lists, so you can force commands from your<br />

local task list to execute on a remote host or override the resource<br />

requirements for a command.<br />

You can explicitly specify the eligibility of a command-line for remote<br />

execution using the @ character. It may be anywhere in the command line<br />

except in the first position (@ as the first character on the line is used to set the<br />

value of shell variables).<br />

You can restrict who can use @ for host redirection in lstcsh with the<br />

parameter <strong>LSF</strong>_SHELL_AT_USERS in lsf.conf. See the <strong>Platform</strong> <strong>LSF</strong><br />

Reference for more details.<br />

% hostname @hostD<br />

><br />

hostD<br />

% hostname @/type==alpha<br />

><br />

hostB<br />

@<br />

@ followed by nothing means that the command line is eligible for<br />

remote execution.<br />

@host_nam @ followed by a host name forces the command line to be executed<br />

e<br />

on that host.<br />

@local @ followed by the reserved word local forces the command line<br />

to be executed on the local host only.<br />

@/res_req @ followed by / and a resource requirement string means that the<br />

command is eligible for remote execution and that the specified<br />

resource requirements must be used instead of those in the remote<br />

task list.<br />

For ease of use, the host names and the reserved word local following @ can<br />

all be abbreviated as long as they do not cause ambiguity.<br />

Similarly, when specifying resource requirements following the @, it is<br />

necessary to use / only if the first requirement characters specified are also the<br />

first characters of a host name. You do not have to type in resource<br />

requirements for each command line you type if you put these task names into<br />

remote task list together with their resource requirements by running<br />

lsrtasks.<br />

556<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!