A script for gathering statistics on a CIP database (compatible with CIP-dashboard)