Skip to main content

Package to supply a comprehensive list of UNIX-like commands for the DIRAC user interface

Project description

COMDIRAC

Package to supply a comprehensive list of UNIX-like commands for the DIRAC user interface

Provided commands can serve several purposes:

User Client Configuration

Users can customize their client behaviour. The configuration file lies in $HOME/.dirac/dcommands.conf.

This file is a ConfigParser formatted file (see: http://docs.python.org/2/library/configparser.html).

Here is a sample configuration file:

# dcommands.conf

# global client configuration (mainly default profile) [global] default_profile = frangrilles_user

# frangrilles_user profile [frangrilles_user] # DIRAC group name for this profile group_name = frangrilles_user # Home directory home_dir = /vo.france-grilles.fr/user/p/pgay # default destination for commanddput default_se = M3PEC-disk # default options for command drepl replication_scheme = all() replication_ses = LAL-disk,CPPM-disk,MSFG-disk

# other profile [dirac_user] home_dir = / group_name = dirac_user

It contains a [global] section and some named profile sections. Profiles sections are used by dinit command to configure session with some user profile.

commands:

  • dconfig - get and set configuration options from configuration file

Session Environment Commands

COMDIRAC sessions are built from a user profile (see User client configuration).

Sessions are used by all commands to remember client state (think of shell environment variables)

Each session is applicable to the Unix process calling the COMDIRAC command.

commands:

  • dinit - initialize a session from a profile (with proxy creation)

  • dgetenv - get session environment options

  • dsetenv - set session environment options

  • dunsetenv - delete session environment options

File Catalog Files And Directories

These commands, like others in COMDIRAC, require LFN path arguments for files and directories. These LFN paths are specified without any prefix (no “lfn:”).

The main feature of these commands is to provide a sort of File Catalog “working directory” within user session. This working directory can be set and printed with dcd and dpwd, respectively. When correctly set, working directory allows user to name LFNs using relative paths.

commands:

  • dpwd - print File Catalog working directory

  • dcd - change File Catalog working directory

  • dls - list File Catalog files and directories

  • dreplicas - liste File Catalog file replicas

  • dmkdir - create File Catalog directory

  • drmdir - delete File Catalog directory

Data Management

These commands, like others in COMDIRAC, require LFN path arguments for files and directories. These LFN paths are specified without any prefix (no “lfn:”).

When a local path is needed, as with dget or dput, it is deduced from command context. For example, local path is last argument with command dget, while it is first with dput.

commands:

  • dput - register local file in the File Catalog (and copies replica to a Storage Element)

  • dget - retrieves a local copy of a File Catalog file

  • drm - remove a file from the File Catalog (and all associated replicas)

  • drepl - replicates a File Catalog file

  • dchmod - change access rights of a File Catalog file

File Catalog Metadata Management

commands: * dmeta - manipulates File Catalog metadata * dfind - find files with File Catalog metadata

Jobs Management

commands:

  • dinput - retrieve input sandbox for a DIRAC job

  • dkill - kill or delete DIRAC job

  • dlogging - retrieve logging information for a DIRAC job

  • doutput - retrieve output sandbox for a DIRAC job

  • dstat - retrieve status of DIRAC jobs

  • dsub - submit jobs to DIRAC WMS

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

COMDIRAC-2.0.0a2.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

COMDIRAC-2.0.0a2-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

Details for the file COMDIRAC-2.0.0a2.tar.gz.

File metadata

  • Download URL: COMDIRAC-2.0.0a2.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for COMDIRAC-2.0.0a2.tar.gz
Algorithm Hash digest
SHA256 2c73089f8d05a0134b25ddbbc8b56d81010ffd3a4216f0d73394ba72871166e8
MD5 773de4fed6d5fe3497c7c8fbec1ae188
BLAKE2b-256 277cbc5ee8de65cfb69cf38dd7e18e3a5a48b267d2db7b29186c7348ba798ae7

See more details on using hashes here.

File details

Details for the file COMDIRAC-2.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: COMDIRAC-2.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for COMDIRAC-2.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 6172e67e93753fa417d4fa5d8c309a7073340fa5ddd4ef6b572afd4946f3e733
MD5 72a8de0dcf7d96eca4691dd6bf22139e
BLAKE2b-256 d8a45bd98263975a16f59c63d7b03ca8a2227566dca50dd0bce604a17ef58250

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page