Navigation and service

User tool jutil

The tool jutil is meant to manage working on different projects and querying information about the account and connected projects.

Usage:

jutil [-h] person|user|project|env <action> [<options>][-v][-o <format>]

Actions:
show : Query info for users or projects
projects: List of projects that a user is member of
cpuquota: Query CPU quota <--at the moment not, please use q_cpuquota!
dataquota : Query disk quota
activate: Activate a project -> exports env vars and change current unixgroup

Options:
-u <val>, --user=<val> : Specify user
-k <val>, --pkey=<val>: Specify personal key
-p <val>, --project=<val> : Specify project
-g <val>, --group=<val>: Specify project or (primary) group
-c <val>, --contpart=<val> : Query a contingent partition
-A <val> --account=<val> : Query/activate a budget account
-a <val>, --all: Query all entries (Only as root)
-h, --help : Print this help message
-v --verbose : Show more info/logs
-o <val>, --output=<val> : Output format: rows(default),columns,parsable,json
--research : Switch for research projects only
--data : Switch for data projects only
--system : Show info for current system only

Allowed user interface:

jutil person show [-u <uid>|-k <persKey>|-a]

jutil user show [-u <uid>|-a [--system]]
jutil user projects [-u <uid>] [--research|--data]
jutil user cpuquota [-u <uid>|-a] [-p <proj> [-c <contpart> [-A <budget>]]]
jutil user dataquota [-u <uid>|-a] [-g <group>]

jutil project show -p <project>|-a
jutil project cpuquota -p <project>|-a [-c <contpart> [-A <budget>]]
jutil project dataquota -p <project>|-a

jutil env activate -p <project> [-A <budget>]
jutil env init
jutil env refresh

Examples

> jutil user show -u mustermann2
name=Max Mustermann
email=m.mustermann@example.de
uidNumber=1234

> jutil user projects -u mustermann2 –o columns
project unixgroup project-type budgets
----------- ----------- ------------- ---------------
  heg01     heg01          D                  -
cheg01  cheg01           C          heg01   

> jutil project dataquota -p cheg01
name=cheg01
filesystem=project
storage=just
data-hard-limit=…

name=cheg01
filesystem=scratch
storage=just
data-hard-limit=…

> jutil env init <-- done in your profile!
export ARCHIVE_heg01=/arch2/heg01; export PROJECT_cheg01=/p/project/cheg01; export SCRATCH_cheg01=/p/scratch/cheg01; export HOME=/p/home//jusers/mustermann2/jureca_booster; export FASTDATA_heg01=/p/fastdata/heg01;

> jutil env activate -p cheg01
unset SLURM_ACCOUNT; export BUDGET_ACCOUNTS=heg01; export SCRATCH=/p/scratch/cheg01; export PROJECT=/p/project/cheg01;

> jutil env activate -A heg01 –p cheg01
export SLURM_ACCOUNT=heg01; export BUDGET_ACCOUNTS=heg01; export SCRATCH=/p/scratch/cheg01; export PROJECT=/p/project/cheg01;