HCP Metadata Query Tool¶
Quick link: HCP Metadata Query Tool v2
There are situations where one needs to have information about all the objects stored in an Object Storage system, or even what has happened to an object during its lifetime. As well, sometimes one needs to find out if an object has been stored and later on deleted.
In general there is few abilities, beside of ‘walking the tree’, to get this kind of information from most of the Object Storage systems on the market.
For Hitachi Content Platform (HCP), things are different. HCP offers a built-in metadata query engine (MQE), which is able to provide the mentioned details.
The tool described in this document is using the MQE API to request information about object-related operations from HCP. Object-related operation means records describing what and when things happened to an object: it’s creation, metadata changes as well as deletion (including disposition, prune and purge operations).
Is output is either a sqlite3 database file or comma-separated-value (csv) file, plain or compressed, holding a list of the requested operations.
Using the query options, it can answer questions like:
which objects are in the system?
which objects were deleted during a given time period?
Python > 3.7
If you are having issues, please let me know via the GitLab Issue Tracker or send an email to mailto:firstname.lastname@example.org
The MIT License (MIT)
Copyright (c) 2012-2022, Thorsten Simons (email@example.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.