GDPR Cookie Consent by Free Privacy Policy Generator
post thumb
Asset Control
by Matthias Hanitzsch-Moonlight/ on 01 Mar 2019

Find datafile paths with bp

You may know that the actual datafiles holding timeseries on the filesystem are organized within a multi-layered directory structure so that they are distributed across many directories rather than kept in a single directory. This to prevent running out if inodes.

Sometimes you would like to know the exact path of a datafile within that structure. This is when you can use the command bp as shown:

acdba@acbox:~$ echo C0.ISS.2 | bp CONSOLIDATION_C0

Send the ADO ID on STDIN to bp and add the tree ID as a parameter. The output tells you where to find that datafile.

The command bp actually maps the ADO ID to a path of <treeID>/<dir1>/<dirN>. This is the same as producing a hash key. It does not necessarily mean that this datafile exists. It will even produce a result if the ADO ID does not correspond to an existing ADO. So, bp really answers the question: If a datafile existed, where would it be?

comments powered by Disqus