Skip to content

๐Ÿ” Detailed dataset info using ps

datatrail ps --helpUsage: datatrail ps [OPTIONS] SCOPE DATASET

Details of a dataset.

Options:
-s, --show-files Show file names.
-v, --verbose Verbosity: v=INFO, vv=DEBUG.
-q, --quiet Set log level to ERROR.
--help Show this message and exit.

The ps command is used to get information about a child dataset. It can display the datasets replication and deletion policies, in addition to the size and number of files in the dataset.

Dataset policies and size at minoc

$> datatrail ps kko.event.baseband.raw 308892599
   Datatrail: 308892599 kko.event.baseband.raw at Minoc
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Storage Element โ”ƒ Number of Files โ”ƒ Size of Files [GB] โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ minoc           โ”‚ 1024            โ”‚ 5.34               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   Datatrail: Policies for 308892599 kko.event.baseband.raw
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Policy      โ”ƒ Storage Element                    โ”ƒ Priority โ”ƒ Default โ”ƒ Delete After [days] โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ Replication โ”‚ chime                              โ”‚ low      โ”‚ True    โ”‚ -                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Deletion    โ”‚ minoc                              โ”‚ low      โ”‚ True    โ”‚ 36500               โ”‚
โ”‚             โ”‚ arc                                โ”‚ high     โ”‚ True    โ”‚ 60                  โ”‚
โ”‚             โ”‚ chime                              โ”‚ medium   โ”‚ True    โ”‚ 90                  โ”‚
โ”‚             โ”‚ kko                                โ”‚ medium   โ”‚ True    โ”‚ 90                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Belongs to  โ”‚ B0531+21.commissioning.pulsar.temp โ”‚          โ”‚         โ”‚                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

This command is also able to display a list of files for each storage element, if the --show-files or -s flag is passed.

Listing dataset's files

$> datatrail ps kko.event.baseband.raw 308892599 --show-files
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Datatrail: Files for 308892599 kko.event.baseband.raw           โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ Storage Element: minoc                                          โ”‚
โ”‚ Common Path: data/kko/baseband/raw/2023/08/07/astro_308892599/  โ”‚
โ”‚ - baseband_308892599_129.h5                                     โ”‚
โ”‚ - baseband_308892599_1013.h5                                    โ”‚
โ”‚ - baseband_308892599_171.h5                                     โ”‚
โ”‚ - baseband_308892599_250.h5                                     โ”‚
โ”‚ - baseband_308892599_269.h5                                     โ”‚
โ”‚ - baseband_308892599_284.h5                                     โ”‚
โ”‚ - baseband_308892599_295.h5                                     โ”‚
โ”‚ - baseband_308892599_306.h5                                     โ”‚
โ”‚ - baseband_308892599_353.h5                                     โ”‚
โ”‚ - baseband_308892599_926.h5                                     โ”‚
โ”‚ - baseband_308892599_933.h5                                     โ”‚
โ”‚ - baseband_308892599_201.h5                                     โ”‚
โ”‚ - baseband_308892599_393.h5                                     โ”‚
โ”‚ - baseband_308892599_429.h5                                     โ”‚
โ”‚ - baseband_308892599_542.h5                                     โ”‚
โ”‚ - baseband_308892599_565.h5                                     โ”‚
โ”‚ - baseband_308892599_604.h5                                     โ”‚
โ”‚ - baseband_308892599_615.h5                                     โ”‚
โ”‚ - baseband_308892599_657.h5                                     โ”‚
โ”‚ - baseband_308892599_672.h5                                     โ”‚
โ”‚ - baseband_308892599_10.h5                                      โ”‚
โ”‚ - baseband_308892599_110.h5                                     โ”‚
โ”‚ - baseband_308892599_111.h5                                     โ”‚
: