Skip to content

uplink⚓︎

Tools related to running experimentes remotely

Requires rsync, gcloud and ssh access to the DAPPER cluster.

SubmissionConnection ⚓︎

Establish multiplexed ssh to a given submit-node for a given xps_path.

remote_cmd(cmd_string, **kwargs) ⚓︎

Run command at self.host via multiplexed ssh.

get_ip(instance) ⚓︎

Get ip-address of instance.

NB: the use of IP rather than the Host listed in .ssh/config (eg condor-submit.us-central1-f.mc-tut, as generated by gcloud compute config-ssh) requires AddKeysToAgent yes under Host * in .ssh/config, and that you've already logged into the instance once using (eg) ssh condor-submit.us-central1-f.mc-tut.

sub_run(*args, check=True, capture_output=True, text=True, **kwargs) ⚓︎

Do subprocess.run, with responsive defaults.

Examples:

>>> gitfiles = sub_run(["git", "ls-tree", "-r", "--name-only", "HEAD"])  # or:
>>> # gitfiles = sub_run("git ls-tree -r --name-only HEAD", shell=True)

submit_job_GCP(xps_path, **kwargs) ⚓︎

GCP/HTCondor launcher