Giter Club home page Giter Club logo

consistencycheck's Introduction

ConsistencyCheck

build

Compares files on site to files in the dynamo inventory. This tool requires dynamo and xrdfs to be installed separately.

Then a configuration file should be created.

.. autoanysrc:: phony
   :src: ../ConsistencyCheck/test/config.yml
   :analyzer: shell-script

Configuration parameters can also be quickly overwritten for a given run by setting an environment variable of the same name.

A consistency check on a site can be done simply by doing the following:

from ConsistencyCheck import config, datatypes, getsitecontents, getinventorycontents

config.CONFIG_FILE = '/path/to/config.json'
site = 'T2_US_MIT'     # For example

inventory_listing = getinventorycontents.get_inventory_tree(site)
remote_listing = getsitecontents.get_site_tree(site)

datatypes.compare(inventory_listing, remote_listing, 'results')

In this example, the list of file LFNs in the inventory and not at the site will be in results_missing.txt. The list of file LFNs at the site and not in the inventory will be in results_orphan.txt.

Reference

config.py

.. automodule:: ConsistencyCheck.config
   :members:

datatypes.py

.. automodule:: ConsistencyCheck.datatypes
   :members:

getsitecontents.py

.. automodule:: ConsistencyCheck.getsitecontents
   :members:

getinventorycontents.py

.. automodule:: ConsistencyCheck.getinventorycontents
   :members:

consistencycheck's People

Contributors

dabercro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.