Utilities for administrative operations in DataONE.
Several of these utilities require administrative access to DataONE servers, and so are not appropriate for general end-user use.
See also the operations docs in subversion:
Installs a locally editable version of the tools:
- Checkout this project from GitHub
cdto the project- Create a virtual environment. If you have direnv installed, then the python virtual environment venv is created for you. Otherwise, python -m venv venv.
4.. pip install -U -e .
The scripts rely on configuration information that by default is located in:
${HOME}/.dataone/d1_config.json
A default config can be generated by running:
python d1_admin_tools/d1_config.py -i
All scripts are meant to be run from a BASH command line (untested on windows), send output to stdout. Output in text, json, and sometimes xml is supported.
d1nodesShow the list of nodes in an environment.d1nodepropsGet and set the custom properties on nodes.d1fieldsRetrieves a list of fields from the specified solr core.d1hostsList DataONE CNs in an environment.d1logintokenDrive a webbrowser session to login to ORCID and receive a DataONE token. Note: It is necessary to pip install selenium in the working python virtual environment before this script can be used.d1verifytokenGiven a token, decode and verify the signature
May be out of date:
d1resolveResolve an identifier.d1sysmetaRetrieve system metadata given an identifier.d1facetsRetrieves values for a solr field in the specified solr core.d1getpidsRetrieves identifiers from metacat postgres and checks file system consistency.d1listobjectsRun listObjects against a node with various filter options.d1deleteIssues a call to CNCore.delete() for a single PID.d1archiveIssues a call to CNCore.archive() for a single PID.d1indexqstatRetrieves counts from the index processor task queue.d1mnadminReset synchronization time, update MN node document