chazeon / hpc-cli

Work with multiple HPCs over SSH.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hpc-cli

Work with multiple HPCs over SSH.

Usage

NAME:
   hpc-cli - A new cli application

USAGE:
   hpc-cli [global options] command [command options] [arguments...]

COMMANDS:
   exec       Execute the command.
   list-jobs  List all the running jobs.
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config FILE, -c FILE         Load configuration from FILE (default: "config.yml")
   --machine MACHINE, -m MACHINE  Specify the MACHINE to apply on.  (accepts multiple inputs)
   --help, -h                     show help (default: false)

List slurm jobs

# List running jobs in a table.
hpc-cli list-jobs

# List running jobs in json format then format with `jq`.
hpc-cli list-jobs | jq

# List running jobs on expanse and bridges2.
hpc-cli -m expanse -m bridges2 list-jobs
                                    

Execute command

# Show the home directory at different machines.
hpc-cli exec pwd

# Show current running jobs on different machines.
hpc-cli exec 'squeue -u $(whoami)'  

About

Work with multiple HPCs over SSH.


Languages

Language:Go 100.0%