Open ast0815 opened 6 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}}
There should be a way to check the status of an SE, at least to see if getting data from it still works.