oarsh(1)
๐ oarsh(1) โ the OAR commands era
okay bestie, welcome to oarsh โ remote shell connector for the OAR batch scheduler โจ and its little sibling oarcp, the oarsh companion that copies files from a node or to a node ๐ซถ
๐ธ NAME ๐ธ
oarsh โ remote shell connector for OAR batch scheduler, fr fr.
oarcp โ oarsh companion to copy files from a node or to a node. the duo. the moment. ๐
โจ SYNOPSIS โจ
oarsh [OPTIONS] <NODENAME> [COMMAND]
oarcp [OPTIONS] [NODENAME:]<PATHNAME> [NODENAME:]<PATHNAME>
๐ฆ DESCRIPTION ๐ฆ
So basically, oarsh connects you to a node โ from the job submission frontend of the cluster, or from any other node. that's the whole vibe. lowkey iconic. ๐
๐ OPTIONS ๐
- the whole OpenSSH situation โ the
oarshmechanism uses the OpenSSH client (thesshcommand) under the hood to perform connections to remote hosts. so most of OpenSSH options can be used (but some are filtered out for security reasons ๐). no cap.
๐ ENVIRONMENT ๐
OAR_JOB_IDโ if you're not using the job-key mechanism, this environment variable has to be set to give the jobid of the job to connect to on the remote node (a node can run several jobs at a same time, yes really, they're multitasking queens ๐ ). this is only required for connecting from outside the job (e.g. from the job submission frontend).OAR_JOB_KEY_FILEโ if using the job-key mechanism (seeoarsub -k -e/-i),oarshcan use the job-key defined by theOAR_JOB_KEY_FILEenvironment variable to connect to job on the remote machine. that mechanism can allow one to connect to a job from a machine which is outside the OAR cluster the job belong to (e.g. in a grid of OAR clusters), given the job-key is available on that machine. NB: it is also possible to give the job-key usingoarsh -ioption. ๐๏ธโจOAR_USER_CPUSETโ setting theOAR_USER_CPUSETenvironment variable foroarshallows running the process in the target node with a subset of the CPU set of the job. expected format forOAR_USER_CPUSETis a list of,or+or space separated processing unit. the processing unit ids of the job can be shown usingoarprint(cpusetproperty), or more generally with hwloc'slstopocommand (physical PU). theoarnodescommand also shows thecpusetresource property for every OAR resource. ๐ง ๐OAR_USER_GPUDEVICEโ if the GPU device mechanism is enabled in the OAR installation, setting theOAR_USER_GPUDEVICEenvironment variable foroarshallows running the process in the target node with a subset of the GPU devices of the job. expected format forOAR_USER_GPUDEVICEis a list of,or+or space separated Linux char devices (e.g.:/dev/nvidia0). the GPU devices of the job can be shown with usingoarprint(gpudeviceproperty). theoarnodescommand also shows thegpudeviceresource property for every OAR resource. ๐ฎ๐ฅ
๐ EXAMPLES ๐
connecting from within our job, from one node to another one (node23):
oarsh node-23
connecting to a node (node23) of our job (Id: 4242) from the frontal of the cluster:
OAR_JOB_ID=4242 oarsh node-23
connecting to a node (node23) of our job that was submitted using a job-key, possibly from anywhere:
OAR_JOB_KEY_FILE=~/my_key oarsh node-23
same thing but using OpenSSH-like -i option:
oarsh -i ~/my_key node-23
running a process on a subset of the CPU set of GPU devices of the job:
OAR_USER_CPUSET=0,7 OAR_USER_GPUDEVICE=/dev/nvidia3 oarsh node-23
๐ง NOTES ๐ง
oarshinherits from most of OpenSSH capabilities (e.g. X11 forwarding ๐). however, one feature whichoarshdoes break is the SSH Agent. not the glow-up we wanted but it's the truth ๐ญ- the user's OpenSSH configuration files (files in the
~/.sshdirectory) are not used byoarsh. it simply does not read them. periodt. - when a job is running alone on a whole host, it may be possible to simply use
sshinstead ofoarshto connect to the host. this require OAR to be configured with thepam_oar_adoptmechanism. main character shortcut energy tbh.
ngl bestie, read the SSH Agent bit again. it's giving "broken on purpose" and you need to know that before you spend an hour debugging it ๐
๐ SEE ALSO ๐
oarprint(1), oarnodes(1), lstopo(1), ssh(1), oarcp(1), oarsub(1), pam_oar_adopt(8) โ go read them, they're all slay โจ
๐ COPYRIGHTS ๐
Copyright 2003-2025 Laboratoire d'Informatique de Grenoble (http://www.liglab.fr). This software is licensed under the GNU General Public License Version 2 or above. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ๐ซถ
okay that's the whole page bestie, tysm for reading ๐ this was oarsh, page oarsh(1) from the OAR commands collection, dated 2025-03-24 โ mwah, go connect to a node ๐๐
๐ฆ where this page comes from
- debian trixie: oar-common 2.6.1-1 ยท GPL-2.0-or-later
- ubuntu questing: oar-common 2.6.1-1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms