t2k-software / t2kdm

T2K Data Manager - t2kdm
MIT License
2 stars 4 forks source link

Implement SE status command #10

Open ast0815 opened 6 years ago

ast0815 commented 6 years ago

There should be a way to check the status of an SE, at least to see if getting data from it still works.

ast0815 commented 4 years ago

Can also report free space on SEs:

In [1]: from DIRAC.Core.Base.Script import parseCommandLine; parseCommandLine()
Out[1]: True

In [2]: from DIRAC.Resources.Storage.StorageElement import StorageElement

In [4]: StorageElement('GRIDKA-BUFFER').getOccupancy()
Out[4]:
{'OK': True,
 'Value': {'Free': 645793712.972991,
  'SpaceReservation': 'LHCb-Disk',
  'Total': 3972053527.8320312}}